1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\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
9 package org.jcae.opencascade.jni;
\r
11 public class Geom_Surface extends Geom_Geometry {
\r
12 private long swigCPtr;
\r
14 public Geom_Surface(long cPtr, boolean cMemoryOwn) {
\r
15 super(OccJavaJNI.Geom_Surface_SWIGUpcast(cPtr), cMemoryOwn);
\r
19 public static long getCPtr(Geom_Surface obj) {
\r
20 return (obj == null) ? 0 : obj.swigCPtr;
\r
23 protected void finalize() {
\r
27 public synchronized void delete() {
\r
28 if (swigCPtr != 0) {
\r
30 swigCMemOwn = false;
\r
31 OccJavaJNI.delete_Geom_Surface(swigCPtr);
\r
38 public double[] value(double U, double V) {
\r
39 return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V);
\r
44 * Return the bounds of the parameters of the surface.
\r
45 * @param bounds an array of size 4 which will receive {Umin, Umax, Vmin, Vmax}
\r
47 public void bounds(double[] bounds) {
\r
48 OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds);
\r
53 * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays.
\r
55 public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) {
\r
56 OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2);
\r
59 public boolean isUClosed() {
\r
60 return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this);
\r
63 public boolean isVClosed() {
\r
64 return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this);
\r
67 public Geom_Curve uIso(double U) {
\r
68 return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true);
\r
71 public Geom_Curve vIso(double V) {
\r
72 return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true);
\r