]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/ShapeFix_Wireframe.java
Updated OpenCASCADE to 7.3.0
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / ShapeFix_Wireframe.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.12
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package org.jcae.opencascade.jni;
10
11 public class ShapeFix_Wireframe extends ShapeFix_Root {
12   private transient long swigCPtr;
13
14   protected ShapeFix_Wireframe(long cPtr, boolean cMemoryOwn) {
15     super(OccJavaJNI.ShapeFix_Wireframe_SWIGUpcast(cPtr), cMemoryOwn);
16     swigCPtr = cPtr;
17   }
18
19   protected static long getCPtr(ShapeFix_Wireframe obj) {
20     return (obj == null) ? 0 : obj.swigCPtr;
21   }
22
23   protected void finalize() {
24     delete();
25   }
26
27   public synchronized void delete() {
28     if (swigCPtr != 0) {
29       if (swigCMemOwn) {
30         swigCMemOwn = false;
31         OccJavaJNI.delete_ShapeFix_Wireframe(swigCPtr);
32       }
33       swigCPtr = 0;
34     }
35     super.delete();
36   }
37
38   public ShapeFix_Wireframe(TopoDS_Shape shape) {
39     this(OccJavaJNI.new_ShapeFix_Wireframe(TopoDS_Shape.getCPtr(shape), shape), true);
40   }
41
42   
43         /** 
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().
46          */
47         public boolean fixWireGaps() {
48         return OccJavaJNI.ShapeFix_Wireframe_fixWireGaps(swigCPtr, this);
49 }
50
51   
52         /**
53          * Fixes small edges in shape by merging adjacent edges.
54          * If precision is 0.0, uses Precision::Confusion().
55          */
56         public boolean fixSmallEdges() {
57         return OccJavaJNI.ShapeFix_Wireframe_fixSmallEdges(swigCPtr, this);
58 }
59
60   
61         /**
62          * If two edges makes an angle greater this angle, these two edges
63          * will be not merged.
64          */
65         public void setLimitAngle(double theLimitAngle) {
66     OccJavaJNI.ShapeFix_Wireframe_setLimitAngle(swigCPtr, this, theLimitAngle);
67   }
68
69   public double getLimitAngle() {
70     return OccJavaJNI.ShapeFix_Wireframe_getLimitAngle(swigCPtr, this);
71   }
72
73   public TopoDS_Shape shape() {
74     long cPtr = OccJavaJNI.ShapeFix_Wireframe_shape(swigCPtr, this);
75     return (TopoDS_Shape)TopoDS_Shape.create(cPtr);
76 }
77
78   public void setDropSmallEdges(boolean b) {
79     OccJavaJNI.ShapeFix_Wireframe_setDropSmallEdges(swigCPtr, this, b);
80   }
81
82   public boolean getDropSmallEdges() {
83     return OccJavaJNI.ShapeFix_Wireframe_getDropSmallEdges(swigCPtr, this);
84   }
85
86 }