-/* ----------------------------------------------------------------------------\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 GeomAPI_ProjectPointOnSurf {\r
- private long swigCPtr;\r
- protected boolean swigCMemOwn;\r
-\r
- public GeomAPI_ProjectPointOnSurf(long cPtr, boolean cMemoryOwn) {\r
- swigCMemOwn = cMemoryOwn;\r
- swigCPtr = cPtr;\r
- }\r
-\r
- public static long getCPtr(GeomAPI_ProjectPointOnSurf 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_GeomAPI_ProjectPointOnSurf(swigCPtr);\r
- }\r
- swigCPtr = 0;\r
- }\r
- }\r
-\r
- public void lowerDistanceParameters(double[] uv)\r
- {\r
- double[] d2=new double[1];\r
- lowerDistanceParameters(uv, d2);\r
- uv[1]=d2[0];\r
- }\r
-\r
- public GeomAPI_ProjectPointOnSurf(double[] P, Geom_Surface Surface) {\r
- this(OccJavaJNI.new_GeomAPI_ProjectPointOnSurf(P, Geom_Surface.getCPtr(Surface), Surface), true);\r
- }\r
-\r
- public void init(double[] P, Geom_Surface surface) {\r
- OccJavaJNI.GeomAPI_ProjectPointOnSurf_init(swigCPtr, this, P, Geom_Surface.getCPtr(surface), surface);\r
- }\r
-\r
- public int nbPoints() {\r
- return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nbPoints(swigCPtr, this);\r
- }\r
-\r
- public double lowerDistance() {\r
- return OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistance(swigCPtr, this);\r
- }\r
-\r
- public double[] point(int Index) {\r
- return OccJavaJNI.GeomAPI_ProjectPointOnSurf_point(swigCPtr, this, Index);\r
-}\r
-\r
- public void lowerDistanceParameters(double[] U, double[] V) {\r
- OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistanceParameters(swigCPtr, this, U, V);\r
- }\r
-\r
- public void parameters(int Index, double[] U, double[] V) {\r
- OccJavaJNI.GeomAPI_ProjectPointOnSurf_parameters(swigCPtr, this, Index, U, V);\r
- }\r
-\r
- public double[] nearestPoint() {\r
- return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nearestPoint(swigCPtr, this);\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 GeomAPI_ProjectPointOnSurf {
+ private transient long swigCPtr;
+ protected transient boolean swigCMemOwn;
+
+ protected GeomAPI_ProjectPointOnSurf(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(GeomAPI_ProjectPointOnSurf obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if (swigCPtr != 0) {
+ if (swigCMemOwn) {
+ swigCMemOwn = false;
+ OccJavaJNI.delete_GeomAPI_ProjectPointOnSurf(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+ }
+
+ public void lowerDistanceParameters(double[] uv)
+ {
+ double[] d2=new double[1];
+ lowerDistanceParameters(uv, d2);
+ uv[1]=d2[0];
+ }
+
+ public GeomAPI_ProjectPointOnSurf(double[] P, Geom_Surface Surface) {
+ this(OccJavaJNI.new_GeomAPI_ProjectPointOnSurf(P, Geom_Surface.getCPtr(Surface), Surface), true);
+ }
+
+ public void init(double[] P, Geom_Surface surface) {
+ OccJavaJNI.GeomAPI_ProjectPointOnSurf_init(swigCPtr, this, P, Geom_Surface.getCPtr(surface), surface);
+ }
+
+ public int nbPoints() {
+ return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nbPoints(swigCPtr, this);
+ }
+
+ public double lowerDistance() {
+ return OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistance(swigCPtr, this);
+ }
+
+ public double[] point(int Index) {
+ return OccJavaJNI.GeomAPI_ProjectPointOnSurf_point(swigCPtr, this, Index);
+}
+
+ public void lowerDistanceParameters(double[] U, double[] V) {
+ OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistanceParameters(swigCPtr, this, U, V);
+ }
+
+ public void parameters(int Index, double[] U, double[] V) {
+ OccJavaJNI.GeomAPI_ProjectPointOnSurf_parameters(swigCPtr, this, Index, U, V);
+ }
+
+ public double[] nearestPoint() {
+ return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nearestPoint(swigCPtr, this);
+}
+
+}