-/* ----------------------------------------------------------------------------\r
- * This file was automatically generated by SWIG (http://www.swig.org).\r
- * Version 2.0.4\r
- *\r
- * Do not make changes to this file unless you know what you are doing--modify\r
- * the SWIG interface file instead.\r
- * ----------------------------------------------------------------------------- */\r
-\r
-package org.jcae.opencascade.jni;\r
-\r
-public class ShapeFix_Wireframe extends ShapeFix_Root {\r
- private long swigCPtr;\r
-\r
- public ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) {\r
- super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn);\r
- swigCPtr = cPtr;\r
- }\r
-\r
- public static long getCPtr(ShapeFix_Wireframe obj) {\r
- return (obj == null) ? 0 : obj.swigCPtr;\r
- }\r
-\r
- protected void finalize() {\r
- delete();\r
- }\r
-\r
- public synchronized void delete() {\r
- if (swigCPtr != 0) {\r
- if (swigCMemOwn) {\r
- swigCMemOwn = false;\r
- OccJavaJNI.delete_ShapeFix_Wireframe(swigCPtr);\r
- }\r
- swigCPtr = 0;\r
- }\r
- super.delete();\r
- }\r
-\r
- public ShapeFix_Wireframe(TopoDS_Shape shape) {\r
- this(OccJavaJNI.new_ShapeFix_Wireframe(TopoDS_Shape.getCPtr(shape), shape), true);\r
- }\r
-\r
- \r
- /** \r
- * Fixes gaps between ends of curves of adjacent edges (both 3d and pcurves)\r
- * in wires. If precision is 0.0, uses Precision::Confusion().\r
- */\r
- public boolean fixWireGaps() {\r
- return OccJavaJNI.ShapeFix_Wireframe_fixWireGaps(swigCPtr, this);\r
-}\r
-\r
- \r
- /**\r
- * Fixes small edges in shape by merging adjacent edges.\r
- * If precision is 0.0, uses Precision::Confusion().\r
- */\r
- public boolean fixSmallEdges() {\r
- return OccJavaJNI.ShapeFix_Wireframe_fixSmallEdges(swigCPtr, this);\r
-}\r
-\r
- \r
- /**\r
- * If two edges makes an angle greater this angle, these two edges\r
- * will be not merged.\r
- */\r
- public void setLimitAngle(double theLimitAngle) {\r
- OccJavaJNI.ShapeFix_Wireframe_setLimitAngle(swigCPtr, this, theLimitAngle);\r
- }\r
-\r
- public double getLimitAngle() {\r
- return OccJavaJNI.ShapeFix_Wireframe_getLimitAngle(swigCPtr, this);\r
- }\r
-\r
- public TopoDS_Shape shape() {\r
- long cPtr = OccJavaJNI.ShapeFix_Wireframe_shape(swigCPtr, this);\r
- return (TopoDS_Shape)TopoDS_Shape.create(cPtr);\r
-}\r
-\r
- public void setDropSmallEdges(boolean b) {\r
- OccJavaJNI.ShapeFix_Wireframe_setDropSmallEdges(swigCPtr, this, b);\r
- }\r
-\r
- public boolean getDropSmallEdges() {\r
- return OccJavaJNI.ShapeFix_Wireframe_getDropSmallEdges(swigCPtr, this);\r
- }\r
-\r
-}\r
+/* ----------------------------------------------------------------------------
+ * 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 ShapeFix_Wireframe extends ShapeFix_Root {
+ private transient long swigCPtr;
+
+ protected ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) {
+ super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(ShapeFix_Wireframe obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OccJavaJNI.delete_ShapeFix_Wireframe(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ super.delete();
+ }
+
+ public ShapeFix_Wireframe(TopoDS_Shape shape) {
+ this(OccJavaJNI.new_ShapeFix_Wireframe(TopoDS_Shape.getCPtr(shape), shape), true);
+ }
+
+
+ /**
+ * Fixes gaps between ends of curves of adjacent edges (both 3d and pcurves)
+ * in wires. If precision is 0.0, uses Precision::Confusion().
+ */
+ public boolean fixWireGaps() {
+ return OccJavaJNI.ShapeFix_Wireframe_fixWireGaps(swigCPtr, this);
+}
+
+
+ /**
+ * Fixes small edges in shape by merging adjacent edges.
+ * If precision is 0.0, uses Precision::Confusion().
+ */
+ public boolean fixSmallEdges() {
+ return OccJavaJNI.ShapeFix_Wireframe_fixSmallEdges(swigCPtr, this);
+}
+
+
+ /**
+ * If two edges makes an angle greater this angle, these two edges
+ * will be not merged.
+ */
+ public void setLimitAngle(double theLimitAngle) {
+ OccJavaJNI.ShapeFix_Wireframe_setLimitAngle(swigCPtr, this, theLimitAngle);
+ }
+
+ public double getLimitAngle() {
+ return OccJavaJNI.ShapeFix_Wireframe_getLimitAngle(swigCPtr, this);
+ }
+
+ public TopoDS_Shape shape() {
+ long cPtr = OccJavaJNI.ShapeFix_Wireframe_shape(swigCPtr, this);
+ return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
+}
+
+ public void setDropSmallEdges(boolean b) {
+ OccJavaJNI.ShapeFix_Wireframe_setDropSmallEdges(swigCPtr, this, b);
+ }
+
+ public boolean getDropSmallEdges() {
+ return OccJavaJNI.ShapeFix_Wireframe_getDropSmallEdges(swigCPtr, this);
+ }
+
+}