]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src/BRepOffsetAPI.i
Gitignores
[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 /*\r
60  * \r
61  * (C) Copyright 2006, by VTT\r
62  */ \r
63 \r
64 \r
65 %{#include <BRepOffsetAPI_ThruSections.hxx>%}\r
66 class BRepOffsetAPI_ThruSections : public BRepBuilderAPI_MakeShape\r
67 {\r
68         %rename(init) Init;\r
69         %rename(addWire) AddWire;\r
70         %rename(addVertex) AddVertex;\r
71         %rename(build) Build;\r
72 \r
73         public:\r
74         BRepOffsetAPI_ThruSections(const Standard_Boolean isSolid = Standard_False,const Standard_Boolean ruled = Standard_False,const Standard_Real pres3d = 1.0e-06);\r
75         void Init(const Standard_Boolean isSolid = Standard_False,const Standard_Boolean ruled = Standard_False,const Standard_Real pres3d = 1.0e-06) ;\r
76         void AddWire(const TopoDS_Wire& wire) ;\r
77         void AddVertex(const TopoDS_Vertex& aVertex) ;\r
78         void Build();\r
79         \r
80 \r
81 };\r
82 \r
83 %{#include <BRepOffset_Mode.hxx>%}\r
84 \r
85 %rename(Skin) BRepOffset_Skin;\r
86 %rename(Pipe) BRepOffset_Pipe;\r
87 %rename(RectoVerso) BRepOffset_RectoVerso;\r
88 \r
89 enum BRepOffset_Mode { \r
90  BRepOffset_Skin,\r
91  BRepOffset_Pipe,\r
92  BRepOffset_RectoVerso\r
93 };\r
94 \r
95 %{#include <BRepOffsetAPI_MakeThickSolid.hxx>%}\r
96 class BRepOffsetAPI_MakeThickSolid : public BRepBuilderAPI_MakeShape\r
97 {\r
98         public:\r
99         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);\r
100 \r
101 };