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