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 Poly_Triangulation {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
15 protected Poly_Triangulation(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 protected static long getCPtr(Poly_Triangulation obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize() {
28 public synchronized void delete() {
32 OccJavaJNI.delete_Poly_Triangulation(swigCPtr);
38 public Poly_Triangulation(int nbNodes, int nbTriangles, boolean UVNodes) {
39 this(OccJavaJNI.new_Poly_Triangulation(nbNodes, nbTriangles, UVNodes), true);
42 public double deflection() {
43 return OccJavaJNI.Poly_Triangulation_deflection__SWIG_0(swigCPtr, this);
46 public void deflection(double D) {
47 OccJavaJNI.Poly_Triangulation_deflection__SWIG_1(swigCPtr, this, D);
50 public void removeUVNodes() {
51 OccJavaJNI.Poly_Triangulation_removeUVNodes(swigCPtr, this);
54 public int nbNodes() {
55 return OccJavaJNI.Poly_Triangulation_nbNodes(swigCPtr, this);
58 public int nbTriangles() {
59 return OccJavaJNI.Poly_Triangulation_nbTriangles(swigCPtr, this);
62 public boolean hasUVNodes() {
63 return OccJavaJNI.Poly_Triangulation_hasUVNodes(swigCPtr, this);
66 public int[] triangles() {
67 return OccJavaJNI.Poly_Triangulation_triangles(swigCPtr, this);
70 public double[] nodes() {
71 return OccJavaJNI.Poly_Triangulation_nodes(swigCPtr, this);
74 public double[] uvNodes() {
75 return OccJavaJNI.Poly_Triangulation_uvNodes(swigCPtr, this);