/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package org.jcae.opencascade.jni; public class BRepBuilderAPI_Sewing { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected BRepBuilderAPI_Sewing(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(BRepBuilderAPI_Sewing obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_BRepBuilderAPI_Sewing(swigCPtr); } swigCPtr = 0; } } public BRepBuilderAPI_Sewing(double tolerance, boolean option, boolean cutting, boolean nonmanifold) { this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_0(tolerance, option, cutting, nonmanifold), true); } public BRepBuilderAPI_Sewing(double tolerance, boolean option, boolean cutting) { this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_1(tolerance, option, cutting), true); } public BRepBuilderAPI_Sewing(double tolerance, boolean option) { this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_2(tolerance, option), true); } public BRepBuilderAPI_Sewing(double tolerance) { this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_3(tolerance), true); } public BRepBuilderAPI_Sewing() { this(OccJavaJNI.new_BRepBuilderAPI_Sewing__SWIG_4(), true); } public void init(double tolerance, boolean option, boolean cutting, boolean nonmanifold) { OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_0(swigCPtr, this, tolerance, option, cutting, nonmanifold); } public void init(double tolerance, boolean option, boolean cutting) { OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_1(swigCPtr, this, tolerance, option, cutting); } public void init(double tolerance, boolean option) { OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_2(swigCPtr, this, tolerance, option); } public void init(double tolerance) { OccJavaJNI.BRepBuilderAPI_Sewing_init__SWIG_3(swigCPtr, this, tolerance); } public void load(TopoDS_Shape shape) { OccJavaJNI.BRepBuilderAPI_Sewing_load(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); } public void add(TopoDS_Shape shape) { OccJavaJNI.BRepBuilderAPI_Sewing_add(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); } public void perform() { OccJavaJNI.BRepBuilderAPI_Sewing_perform(swigCPtr, this); } public TopoDS_Shape sewedShape() { long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_sewedShape(swigCPtr, this); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } public int nbFreeEdges() { return OccJavaJNI.BRepBuilderAPI_Sewing_nbFreeEdges(swigCPtr, this); } public TopoDS_Edge freeEdge(int index) { return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_freeEdge(swigCPtr, this, index), false); } public int nbMultipleEdges() { return OccJavaJNI.BRepBuilderAPI_Sewing_nbMultipleEdges(swigCPtr, this); } public TopoDS_Edge multipleEdge(int index) { return new TopoDS_Edge(OccJavaJNI.BRepBuilderAPI_Sewing_multipleEdge(swigCPtr, this, index), false); } public int nbDegeneratedShapes() { return OccJavaJNI.BRepBuilderAPI_Sewing_nbDegeneratedShapes(swigCPtr, this); } public TopoDS_Shape degeneratedShape(int index) { long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_degeneratedShape(swigCPtr, this, index); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } public int nbDeletedFaces() { return OccJavaJNI.BRepBuilderAPI_Sewing_nbDeletedFaces(swigCPtr, this); } public TopoDS_Face deletedFace(int index) { return new TopoDS_Face(OccJavaJNI.BRepBuilderAPI_Sewing_deletedFace(swigCPtr, this, index), false); } public boolean isDegenerated(TopoDS_Shape shape) { return OccJavaJNI.BRepBuilderAPI_Sewing_isDegenerated(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); } public boolean isModified(TopoDS_Shape shape) { return OccJavaJNI.BRepBuilderAPI_Sewing_isModified(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); } public TopoDS_Shape modified(TopoDS_Shape shape) { long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_modified(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } public void dump() { OccJavaJNI.BRepBuilderAPI_Sewing_dump(swigCPtr, this); } public boolean isModifiedSubShape(TopoDS_Shape shape) { return OccJavaJNI.BRepBuilderAPI_Sewing_isModifiedSubShape(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); } public TopoDS_Shape modifiedSubShape(TopoDS_Shape shape) { long cPtr = OccJavaJNI.BRepBuilderAPI_Sewing_modifiedSubShape(swigCPtr, this, TopoDS_Shape.getCPtr(shape), shape); return (TopoDS_Shape)TopoDS_Shape.create(cPtr); } }