1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\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
9 package org.jcae.opencascade.jni;
\r
11 public class BRepBuilderAPI_Sewing {
\r
12 private long swigCPtr;
\r
13 protected boolean swigCMemOwn;
\r
15 public BRepBuilderAPI_Sewing(long cPtr, boolean cMemoryOwn) {
\r
16 swigCMemOwn = cMemoryOwn;
\r
20 public static long getCPtr(BRepBuilderAPI_Sewing obj) {
\r
21 return (obj == null) ? 0 : obj.swigCPtr;
\r
24 protected void finalize() {
\r
28 public synchronized void delete() {
\r
29 if (swigCPtr != 0) {
\r
31 swigCMemOwn = false;
\r
32 OccJavaJNI.delete_BRepBuilderAPI_Sewing(swigCPtr);
\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
42 public BRepBuilderAPI_Sewing(double tolerance, boolean option, boolean cutting) {
\r
43 this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_1(tolerance, option, cutting), true);
\r
46 public BRepBuilderAPI_Sewing(double tolerance, boolean option) {
\r
47 this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_2(tolerance, option), true);
\r
50 public BRepBuilderAPI_Sewing(double tolerance) {
\r
51 this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_3(tolerance), true);
\r
54 public BRepBuilderAPI_Sewing() {
\r
55 this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_4(), true);
\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
62 public void init(double tolerance, boolean option, boolean cutting) {
\r
63 OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_1(swigCPtr, this, tolerance, option, cutting);
\r
66 public void init(double tolerance, boolean option) {
\r
67 OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_2(swigCPtr, this, tolerance, option);
\r
70 public void init(double tolerance) {
\r
71 OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_3(swigCPtr, this, tolerance);
\r
74 public void load(TopoDS_Shape shape) {
\r
75 OccJavaJNI.BRepBuilderAPI_Sewing_load(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
\r
78 public void add(TopoDS_Shape shape) {
\r
79 OccJavaJNI.BRepBuilderAPI_Sewing_add(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
\r
82 public void perform() {
\r
83 OccJavaJNI.BRepBuilderAPI_Sewing_perform(swigCPtr, this);
\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
91 public int nbFreeEdges() {
\r
92 return OccJavaJNI.BRepBuilderAPI_Sewing_nbFreeEdges(swigCPtr, this);
\r
95 public TopoDS_Edge freeEdge(int index) {
\r
96 return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_freeEdge(swigCPtr, this, index), false);
\r
99 public int nbMultipleEdges() {
\r
100 return OccJavaJNI.BRepBuilderAPI_Sewing_nbMultipleEdges(swigCPtr, this);
\r
103 public TopoDS_Edge multipleEdge(int index) {
\r
104 return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_multipleEdge(swigCPtr, this, index), false);
\r
107 public int nbDegeneratedShapes() {
\r
108 return OccJavaJNI.BRepBuilderAPI_Sewing_nbDegeneratedShapes(swigCPtr, this);
\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
116 public int nbDeletedFaces() {
\r
117 return OccJavaJNI.BRepBuilderAPI_Sewing_nbDeletedFaces(swigCPtr, this);
\r
120 public TopoDS_Face deletedFace(int index) {
\r
121 return new TopoDS_Face(OccJavaJNI.BRepBuilderAPI_Sewing_deletedFace(swigCPtr, this, index), false);
\r
124 public boolean isDegenerated(TopoDS_Shape shape) {
\r
125 return OccJavaJNI.BRepBuilderAPI_Sewing_isDegenerated(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
\r
128 public boolean isModified(TopoDS_Shape shape) {
\r
129 return OccJavaJNI.BRepBuilderAPI_Sewing_isModified(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
\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
137 public void dump() {
\r
138 OccJavaJNI.BRepBuilderAPI_Sewing_dump(swigCPtr, this);
\r
141 public boolean isModifiedSubShape(TopoDS_Shape shape) {
\r
142 return OccJavaJNI.BRepBuilderAPI_Sewing_isModifiedSubShape(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape);
\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