]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/Geom_Surface.java
2500c733cc379e8f6b0911c71f9b25c2b092f482
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / Geom_Surface.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 Geom_Surface {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected Geom_Surface(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(Geom_Surface 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_Geom_Surface(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38   public double[] value(double U, double V) {
39         return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V);
40 }
41
42   
43         /**
44          * Return the bounds of the parameters of the surface.
45          * @param bounds  an array of size 4 which will receive {Umin, Umax, Vmin, Vmax}
46          */
47         public void bounds(double[] bounds) {
48     OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds);
49   }
50
51   
52         /**
53          * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays.
54          */
55         public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) {
56     OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2);
57   }
58
59   public boolean isUClosed() {
60         return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this);
61 }
62
63   public boolean isVClosed() {
64         return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this);
65 }
66
67   public Geom_Curve uIso(double U) {
68     return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true);
69   }
70
71   public Geom_Curve vIso(double V) {
72     return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true);
73   }
74
75 }