| 1 | // Created on: 1996-03-08 |
| 2 | // Created by: Jacques GOUSSARD |
| 3 | // Copyright (c) 1996-1999 Matra Datavision |
| 4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
| 5 | // |
| 6 | // This file is part of Open CASCADE Technology software library. |
| 7 | // |
| 8 | // This library is free software; you can redistribute it and/or modify it under |
| 9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
| 10 | // by the Free Software Foundation, with special exception defined in the file |
| 11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
| 12 | // distribution for complete text of the license and disclaimer of any warranty. |
| 13 | // |
| 14 | // Alternatively, this file may be used under the terms of Open CASCADE |
| 15 | // commercial license or contractual agreement. |
| 16 | |
| 17 | //======================================================================= |
| 18 | //function : BRepFeat_Gluer |
| 19 | //purpose : |
| 20 | //======================================================================= |
| 21 | |
| 22 | inline BRepFeat_Gluer::BRepFeat_Gluer () |
| 23 | {} |
| 24 | |
| 25 | |
| 26 | //======================================================================= |
| 27 | //function : BRepFeat_Gluer |
| 28 | //purpose : |
| 29 | //======================================================================= |
| 30 | |
| 31 | inline BRepFeat_Gluer::BRepFeat_Gluer (const TopoDS_Shape& Snew, |
| 32 | const TopoDS_Shape& Sbase) : |
| 33 | myGluer(Sbase,Snew) // Attention a l`inversion |
| 34 | {} |
| 35 | |
| 36 | |
| 37 | //======================================================================= |
| 38 | //function : Init |
| 39 | //purpose : |
| 40 | //======================================================================= |
| 41 | |
| 42 | inline void BRepFeat_Gluer::Init(const TopoDS_Shape& Snew, |
| 43 | const TopoDS_Shape& Sbase) |
| 44 | { |
| 45 | myGluer.Init(Sbase,Snew); |
| 46 | } |
| 47 | |
| 48 | |
| 49 | //======================================================================= |
| 50 | //function : Bind |
| 51 | //purpose : |
| 52 | //======================================================================= |
| 53 | |
| 54 | inline void BRepFeat_Gluer::Bind(const TopoDS_Face& Fnew, |
| 55 | const TopoDS_Face& Fbase) |
| 56 | { |
| 57 | myGluer.Bind(Fnew,Fbase); |
| 58 | } |
| 59 | |
| 60 | |
| 61 | //======================================================================= |
| 62 | //function : Bind |
| 63 | //purpose : |
| 64 | //======================================================================= |
| 65 | |
| 66 | inline void BRepFeat_Gluer::Bind(const TopoDS_Edge& Enew, |
| 67 | const TopoDS_Edge& Ebase) |
| 68 | { |
| 69 | myGluer.Bind(Enew,Ebase); |
| 70 | } |
| 71 | |
| 72 | |
| 73 | //======================================================================= |
| 74 | //function : OpeType |
| 75 | //purpose : |
| 76 | //======================================================================= |
| 77 | |
| 78 | inline LocOpe_Operation BRepFeat_Gluer::OpeType() const |
| 79 | { |
| 80 | return myGluer.OpeType(); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | //======================================================================= |
| 85 | //function : BasisShape |
| 86 | //purpose : |
| 87 | //======================================================================= |
| 88 | |
| 89 | inline const TopoDS_Shape& BRepFeat_Gluer::BasisShape() const |
| 90 | { |
| 91 | return myGluer.BasisShape(); |
| 92 | } |
| 93 | |
| 94 | |
| 95 | //======================================================================= |
| 96 | //function : GluedShape |
| 97 | //purpose : |
| 98 | //======================================================================= |
| 99 | |
| 100 | inline const TopoDS_Shape& BRepFeat_Gluer::GluedShape() const |
| 101 | { |
| 102 | return myGluer.GluedShape(); |
| 103 | } |
| 104 | |
| 105 | |