-/* ----------------------------------------------------------------------------\r
- * This file was automatically generated by SWIG (http://www.swig.org).\r
- * Version 2.0.4\r
- *\r
- * Do not make changes to this file unless you know what you are doing--modify\r
- * the SWIG interface file instead.\r
- * ----------------------------------------------------------------------------- */\r
-\r
-package org.jcae.opencascade.jni;\r
-\r
-public class Geom_Surface extends Geom_Geometry {\r
- private long swigCPtr;\r
-\r
- public Geom_Surface(long cPtr, boolean cMemoryOwn) {\r
- super(OccJavaJNI.Geom_Surface_SWIGUpcast(cPtr), cMemoryOwn);\r
- swigCPtr = cPtr;\r
- }\r
-\r
- public static long getCPtr(Geom_Surface obj) {\r
- return (obj == null) ? 0 : obj.swigCPtr;\r
- }\r
-\r
- protected void finalize() {\r
- delete();\r
- }\r
-\r
- public synchronized void delete() {\r
- if (swigCPtr != 0) {\r
- if (swigCMemOwn) {\r
- swigCMemOwn = false;\r
- OccJavaJNI.delete_Geom_Surface(swigCPtr);\r
- }\r
- swigCPtr = 0;\r
- }\r
- super.delete();\r
- }\r
-\r
- public double[] value(double U, double V) {\r
- return OccJavaJNI.Geom_Surface_value(swigCPtr, this, U, V);\r
-}\r
-\r
- \r
- /**\r
- * Return the bounds of the parameters of the surface.\r
- * @param bounds an array of size 4 which will receive {Umin, Umax, Vmin, Vmax}\r
- */\r
- public void bounds(double[] bounds) {\r
- OccJavaJNI.Geom_Surface_bounds__SWIG_0(swigCPtr, this, bounds);\r
- }\r
-\r
- \r
- /**\r
- * @deprecated use bounds(double[]) , it do not need to allocate 4 arrays.\r
- */\r
- public void bounds(double[] U1, double[] U2, double[] V1, double[] V2) {\r
- OccJavaJNI.Geom_Surface_bounds__SWIG_1(swigCPtr, this, U1, U2, V1, V2);\r
- }\r
-\r
- public boolean isUClosed() {\r
- return OccJavaJNI.Geom_Surface_isUClosed(swigCPtr, this);\r
-}\r
-\r
- public boolean isVClosed() {\r
- return OccJavaJNI.Geom_Surface_isVClosed(swigCPtr, this);\r
-}\r
-\r
- public Geom_Curve uIso(double U) {\r
- return new Geom_Curve(OccJavaJNI.Geom_Surface_uIso(swigCPtr, this, U), true);\r
- }\r
-\r
- public Geom_Curve vIso(double V) {\r
- return new Geom_Curve(OccJavaJNI.Geom_Surface_vIso(swigCPtr, this, V), true);\r
- }\r
-\r
-}\r
+/* ----------------------------------------------------------------------------
+ * 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);
+ }
+
+}