/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package org.jcae.opencascade.jni; public class Poly_Triangulation { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected Poly_Triangulation(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(Poly_Triangulation obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_Poly_Triangulation(swigCPtr); } swigCPtr = 0; } } public Poly_Triangulation(int nbNodes, int nbTriangles, boolean UVNodes) { this(OccJavaJNI.new_Poly_Triangulation(nbNodes, nbTriangles, UVNodes), true); } public double deflection() { return OccJavaJNI.Poly_Triangulation_deflection__SWIG_0(swigCPtr, this); } public void deflection(double D) { OccJavaJNI.Poly_Triangulation_deflection__SWIG_1(swigCPtr, this, D); } public void removeUVNodes() { OccJavaJNI.Poly_Triangulation_removeUVNodes(swigCPtr, this); } public int nbNodes() { return OccJavaJNI.Poly_Triangulation_nbNodes(swigCPtr, this); } public int nbTriangles() { return OccJavaJNI.Poly_Triangulation_nbTriangles(swigCPtr, this); } public boolean hasUVNodes() { return OccJavaJNI.Poly_Triangulation_hasUVNodes(swigCPtr, this); } public int[] triangles() { return OccJavaJNI.Poly_Triangulation_triangles(swigCPtr, this); } public double[] nodes() { return OccJavaJNI.Poly_Triangulation_nodes(swigCPtr, this); } public double[] uvNodes() { return OccJavaJNI.Poly_Triangulation_uvNodes(swigCPtr, this); } }