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