1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package org.jcae.opencascade.jni;
\r
11 public class ShapeFix_Wireframe extends ShapeFix_Root {
\r
12 private long swigCPtr;
\r
14 public ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) {
\r
15 super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn);
\r
19 public static long getCPtr(ShapeFix_Wireframe obj) {
\r
20 return (obj == null) ? 0 : obj.swigCPtr;
\r
23 protected void finalize() {
\r
27 public synchronized void delete() {
\r
28 if (swigCPtr != 0) {
\r
30 swigCMemOwn = false;
\r
31 OccJavaJNI.delete_ShapeFix_Wireframe(swigCPtr);
\r
38 public ShapeFix_Wireframe(TopoDS_Shape shape) {
\r
39 this(OccJavaJNI.new_ShapeFix_Wireframe(TopoDS_Shape.getCPtr(shape), shape), true);
\r
44 * Fixes gaps between ends of curves of adjacent edges (both 3d and pcurves)
\r
45 * in wires. If precision is 0.0, uses Precision::Confusion().
\r
47 public boolean fixWireGaps() {
\r
48 return OccJavaJNI.ShapeFix_Wireframe_fixWireGaps(swigCPtr, this);
\r
53 * Fixes small edges in shape by merging adjacent edges.
\r
54 * If precision is 0.0, uses Precision::Confusion().
\r
56 public boolean fixSmallEdges() {
\r
57 return OccJavaJNI.ShapeFix_Wireframe_fixSmallEdges(swigCPtr, this);
\r
62 * If two edges makes an angle greater this angle, these two edges
\r
63 * will be not merged.
\r
65 public void setLimitAngle(double theLimitAngle) {
\r
66 OccJavaJNI.ShapeFix_Wireframe_setLimitAngle(swigCPtr, this, theLimitAngle);
\r
69 public double getLimitAngle() {
\r
70 return OccJavaJNI.ShapeFix_Wireframe_getLimitAngle(swigCPtr, this);
\r
73 public TopoDS_Shape shape() {
\r
74 long cPtr = OccJavaJNI.ShapeFix_Wireframe_shape(swigCPtr, this);
\r
75 return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
\r
78 public void setDropSmallEdges(boolean b) {
\r
79 OccJavaJNI.ShapeFix_Wireframe_setDropSmallEdges(swigCPtr, this, b);
\r
82 public boolean getDropSmallEdges() {
\r
83 return OccJavaJNI.ShapeFix_Wireframe_getDropSmallEdges(swigCPtr, this);
\r