/* ---------------------------------------------------------------------------- * 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 Geom_Surface { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected Geom_Surface(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(Geom_Surface obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; OccJavaJNI.delete_Geom_Surface(swigCPtr); } swigCPtr = 0; } } public double[] value(double U, double V) { return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V); } /** * Return the bounds of the parameters of the surface. * @param bounds an array of size 4 which will receive {Umin, Umax, Vmin, Vmax} */ public void bounds(double[] bounds) { OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds); } /** * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays. */ public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) { OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2); } public boolean isUClosed() { return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this); } public boolean isVClosed() { return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this); } public Geom_Curve uIso(double U) { return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true); } public Geom_Curve vIso(double V) { return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true); } }