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 ShapeFix_Wireframe extends ShapeFix_Root {
12 private transient long swigCPtr;
14 protected ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) {
15 super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn);
19 protected static long getCPtr(ShapeFix_Wireframe obj) {
20 return (obj == null) ? 0 : obj.swigCPtr;
23 protected void finalize() {
27 public synchronized void delete() {
31 OccJavaJNI.delete_ShapeFix_Wireframe(swigCPtr);
38 public ShapeFix_Wireframe(TopoDS_Shape shape) {
39 this(OccJavaJNI.new_ShapeFix_Wireframe(TopoDS_Shape.getCPtr(shape), shape), true);
44 * Fixes gaps between ends of curves of adjacent edges (both 3d and pcurves)
45 * in wires. If precision is 0.0, uses Precision::Confusion().
47 public boolean fixWireGaps() {
48 return OccJavaJNI.ShapeFix_Wireframe_fixWireGaps(swigCPtr, this);
53 * Fixes small edges in shape by merging adjacent edges.
54 * If precision is 0.0, uses Precision::Confusion().
56 public boolean fixSmallEdges() {
57 return OccJavaJNI.ShapeFix_Wireframe_fixSmallEdges(swigCPtr, this);
62 * If two edges makes an angle greater this angle, these two edges
65 public void setLimitAngle(double theLimitAngle) {
66 OccJavaJNI.ShapeFix_Wireframe_setLimitAngle(swigCPtr, this, theLimitAngle);
69 public double getLimitAngle() {
70 return OccJavaJNI.ShapeFix_Wireframe_getLimitAngle(swigCPtr, this);
73 public TopoDS_Shape shape() {
74 long cPtr = OccJavaJNI.ShapeFix_Wireframe_shape(swigCPtr, this);
75 return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
78 public void setDropSmallEdges(boolean b) {
79 OccJavaJNI.ShapeFix_Wireframe_setDropSmallEdges(swigCPtr, this, b);
82 public boolean getDropSmallEdges() {
83 return OccJavaJNI.ShapeFix_Wireframe_getDropSmallEdges(swigCPtr, this);