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