]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRepBuilderAPI_Sewing.java
022312041b9e7806ec4c9d593de68f79dc85d1f7
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / BRepBuilderAPI_Sewing.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.4\r
4  *\r
5  * Do not make changes to this file unless you know what you are doing--modify\r
6  * the SWIG interface file instead.\r
7  * ----------------------------------------------------------------------------- */\r
8 \r
9 package org.jcae.opencascade.jni;\r
10 \r
11 public class BRepBuilderAPI_Sewing {\r
12   private long swigCPtr;\r
13   protected boolean swigCMemOwn;\r
14 \r
15   public BRepBuilderAPI_Sewing(long cPtr, boolean cMemoryOwn) {\r
16     swigCMemOwn = cMemoryOwn;\r
17     swigCPtr = cPtr;\r
18   }\r
19 \r
20   public static long getCPtr(BRepBuilderAPI_Sewing obj) {\r
21     return (obj == null) ? 0 : obj.swigCPtr;\r
22   }\r
23 \r
24   protected void finalize() {\r
25     delete();\r
26   }\r
27 \r
28   public synchronized void delete() {\r
29     if (swigCPtr != 0) {\r
30       if (swigCMemOwn) {\r
31         swigCMemOwn = false;\r
32         OccJavaJNI.delete_BRepBuilderAPI_Sewing(swigCPtr);\r
33       }\r
34       swigCPtr = 0;\r
35     }\r
36   }\r
37 \r
38   public BRepBuilderAPI_Sewing(double tolerance, boolean option, boolean cutting, boolean nonmanifold) {\r
39     this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_0(tolerance, option, cutting, nonmanifold), true);\r
40   }\r
41 \r
42   public BRepBuilderAPI_Sewing(double tolerance, boolean option, boolean cutting) {\r
43     this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_1(tolerance, option, cutting), true);\r
44   }\r
45 \r
46   public BRepBuilderAPI_Sewing(double tolerance, boolean option) {\r
47     this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_2(tolerance, option), true);\r
48   }\r
49 \r
50   public BRepBuilderAPI_Sewing(double tolerance) {\r
51     this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_3(tolerance), true);\r
52   }\r
53 \r
54   public BRepBuilderAPI_Sewing() {\r
55     this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_4(), true);\r
56   }\r
57 \r
58   public void init(double tolerance, boolean option, boolean cutting, boolean nonmanifold) {\r
59     OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_0(swigCPtr, this, tolerance, option, cutting, nonmanifold);\r
60   }\r
61 \r
62   public void init(double tolerance, boolean option, boolean cutting) {\r
63     OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_1(swigCPtr, this, tolerance, option, cutting);\r
64   }\r
65 \r
66   public void init(double tolerance, boolean option) {\r
67     OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_2(swigCPtr, this, tolerance, option);\r
68   }\r
69 \r
70   public void init(double tolerance) {\r
71     OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_3(swigCPtr, this, tolerance);\r
72   }\r
73 \r
74   public void load(TopoDS_Shape shape) {\r
75     OccJavaJNI.BRepBuilderAPI_Sewing_load(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
76   }\r
77 \r
78   public void add(TopoDS_Shape shape) {\r
79     OccJavaJNI.BRepBuilderAPI_Sewing_add(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
80   }\r
81 \r
82   public void perform() {\r
83     OccJavaJNI.BRepBuilderAPI_Sewing_perform(swigCPtr, this);\r
84   }\r
85 \r
86   public TopoDS_Shape sewedShape() {\r
87     long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_sewedShape(swigCPtr, this);\r
88     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
89 }\r
90 \r
91   public int nbFreeEdges() {\r
92     return OccJavaJNI.BRepBuilderAPI_Sewing_nbFreeEdges(swigCPtr, this);\r
93   }\r
94 \r
95   public TopoDS_Edge freeEdge(int index) {\r
96     return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_freeEdge(swigCPtr, this, index), false);\r
97   }\r
98 \r
99   public int nbMultipleEdges() {\r
100     return OccJavaJNI.BRepBuilderAPI_Sewing_nbMultipleEdges(swigCPtr, this);\r
101   }\r
102 \r
103   public TopoDS_Edge multipleEdge(int index) {\r
104     return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_multipleEdge(swigCPtr, this, index), false);\r
105   }\r
106 \r
107   public int nbDegeneratedShapes() {\r
108     return OccJavaJNI.BRepBuilderAPI_Sewing_nbDegeneratedShapes(swigCPtr, this);\r
109   }\r
110 \r
111   public TopoDS_Shape degeneratedShape(int index) {\r
112     long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_degeneratedShape(swigCPtr, this, index);\r
113     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
114 }\r
115 \r
116   public int nbDeletedFaces() {\r
117     return OccJavaJNI.BRepBuilderAPI_Sewing_nbDeletedFaces(swigCPtr, this);\r
118   }\r
119 \r
120   public TopoDS_Face deletedFace(int index) {\r
121     return new TopoDS_Face(OccJavaJNI.BRepBuilderAPI_Sewing_deletedFace(swigCPtr, this, index), false);\r
122   }\r
123 \r
124   public boolean isDegenerated(TopoDS_Shape shape) {\r
125         return OccJavaJNI.BRepBuilderAPI_Sewing_isDegenerated(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
126 }\r
127 \r
128   public boolean isModified(TopoDS_Shape shape) {\r
129         return OccJavaJNI.BRepBuilderAPI_Sewing_isModified(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
130 }\r
131 \r
132   public TopoDS_Shape modified(TopoDS_Shape shape) {\r
133     long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_modified(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
134     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
135 }\r
136 \r
137   public void dump() {\r
138     OccJavaJNI.BRepBuilderAPI_Sewing_dump(swigCPtr, this);\r
139   }\r
140 \r
141   public boolean isModifiedSubShape(TopoDS_Shape shape) {\r
142         return OccJavaJNI.BRepBuilderAPI_Sewing_isModifiedSubShape(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
143 }\r
144 \r
145   public TopoDS_Shape modifiedSubShape(TopoDS_Shape shape) {\r
146     long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_modifiedSubShape(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);\r
147     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
148 }\r
149 \r
150 }\r