X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FShapeFix_Wireframe.java;h=b7bb42d13840917c84efa2e08cf0ec795c578e5c;hb=HEAD;hp=4bfca95aae368eab08798990314fa9bfb1440faa;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeFix_Wireframe.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeFix_Wireframe.java index 4bfca95a..b7bb42d1 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeFix_Wireframe.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeFix_Wireframe.java @@ -1,86 +1,86 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 - * - * 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 long swigCPtr; - - public ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) { - super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn); - swigCPtr = cPtr; - } - - public 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); - } - -} +/* ---------------------------------------------------------------------------- + * 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); + } + +}