/* ---------------------------------------------------------------------------- * 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); } }