]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Poly_Triangulation.java
Updated OpenCASCADE to 7.3.0
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / Poly_Triangulation.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 Poly_Triangulation {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected Poly_Triangulation(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(Poly_Triangulation obj) {
21     return (obj == null) ? 0 : obj.swigCPtr;
22   }
23
24   protected void finalize() {
25     delete();
26   }
27
28   public synchronized void delete() {
29     if (swigCPtr != 0) {
30       if (swigCMemOwn) {
31         swigCMemOwn = false;
32         OccJavaJNI.delete_Poly_Triangulation(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38   public Poly_Triangulation(int nbNodes, int nbTriangles, boolean UVNodes) {
39     this(OccJavaJNI.new_Poly_Triangulation(nbNodes, nbTriangles, UVNodes), true);
40   }
41
42   public double deflection() {
43     return OccJavaJNI.Poly_Triangulation_deflection__SWIG_0(swigCPtr, this);
44   }
45
46   public void deflection(double D) {
47     OccJavaJNI.Poly_Triangulation_deflection__SWIG_1(swigCPtr, this, D);
48   }
49
50   public void removeUVNodes() {
51     OccJavaJNI.Poly_Triangulation_removeUVNodes(swigCPtr, this);
52   }
53
54   public int nbNodes() {
55     return OccJavaJNI.Poly_Triangulation_nbNodes(swigCPtr, this);
56   }
57
58   public int nbTriangles() {
59     return OccJavaJNI.Poly_Triangulation_nbTriangles(swigCPtr, this);
60   }
61
62   public boolean hasUVNodes() {
63         return OccJavaJNI.Poly_Triangulation_hasUVNodes(swigCPtr, this);
64 }
65
66   public int[] triangles() {
67         return OccJavaJNI.Poly_Triangulation_triangles(swigCPtr, this);
68 }
69
70   public double[] nodes() {
71         return OccJavaJNI.Poly_Triangulation_nodes(swigCPtr, this);
72 }
73
74   public double[] uvNodes() {
75         return OccJavaJNI.Poly_Triangulation_uvNodes(swigCPtr, this);
76 }
77
78 }