]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src/BRepOffsetAPI.i
PipeRun reverse action
[simantics/3d.git] / org.jcae.opencascade / src / BRepOffsetAPI.i
1 /*
2  * Project Info:  http://jcae.sourceforge.net
3  * 
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17  *
18  * (C) Copyright 2011, by EADS France
19  */
20
21 %{
22 #include <BRepOffsetAPI_NormalProjection.hxx>
23 %}
24
25 class BRepOffsetAPI_NormalProjection: public BRepBuilderAPI_MakeShape
26 {
27         public:
28         %rename(init) Init;
29         %rename(add) Add;
30         %rename(setParams) SetParams;
31         %rename(setMaxDistance) SetMaxDistance;
32         %rename(setLimit) SetLimit;
33         %rename(compute3d) Compute3d;
34         %rename(build) Build;
35         %rename(isDone) IsDone;
36         %rename(projection) Projection;
37         %rename(couple) Couple;
38         %rename(generated) Generated;
39         %rename(ancestor) Ancestor;
40         %rename(buildWire) BuildWire;
41         BRepOffsetAPI_NormalProjection();
42         BRepOffsetAPI_NormalProjection(const TopoDS_Shape& S);
43         void Init(const TopoDS_Shape& S) ;
44         void Add(const TopoDS_Shape& ToProj) ;
45         void SetParams(const Standard_Real Tol3D,const Standard_Real Tol2D,const GeomAbs_Shape InternalContinuity,const Standard_Integer MaxDegree,const Standard_Integer MaxSeg) ;
46         void SetMaxDistance(const Standard_Real MaxDist) ;
47         void SetLimit(const Standard_Boolean FaceBoundaries = Standard_True) ;
48         void Compute3d(const Standard_Boolean With3d = Standard_True) ;
49         virtual  void Build() ;
50         Standard_Boolean IsDone() const;
51         const TopoDS_Shape& Projection() const;
52         const TopoDS_Shape& Couple(const TopoDS_Edge& E) const;
53         virtual const TopTools_ListOfShape& Generated(const TopoDS_Shape& S) ;
54         const TopoDS_Shape& Ancestor(const TopoDS_Edge& E) const;
55         Standard_Boolean BuildWire(TopTools_ListOfShape& Liste) const;
56 };
57
58
59 /*
60  * 
61  * (C) Copyright 2006, by VTT
62  */ 
63
64
65
66 %{#include <BRepOffset_Mode.hxx>%}
67
68 %rename(Skin) BRepOffset_Skin;
69 %rename(Pipe) BRepOffset_Pipe;
70 %rename(RectoVerso) BRepOffset_RectoVerso;
71
72 enum BRepOffset_Mode { 
73  BRepOffset_Skin,
74  BRepOffset_Pipe,
75  BRepOffset_RectoVerso
76 };
77
78 %{#include <BRepOffsetAPI_MakeThickSolid.hxx>%}
79 class BRepOffsetAPI_MakeThickSolid : public BRepBuilderAPI_MakeShape
80 {
81         public:
82         BRepOffsetAPI_MakeThickSolid(const TopoDS_Shape& S,const TopTools_ListOfShape& ClosingFaces,const Standard_Real Offset,const Standard_Real Tol,const BRepOffset_Mode Mode = BRepOffset_Skin,const Standard_Boolean Intersection = Standard_False,const Standard_Boolean SelfInter = Standard_False,const GeomAbs_JoinType Join = GeomAbs_Arc);
83
84 };