X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FGeomAPI_ProjectPointOnSurf.java;h=208004385d5a7f3f5b2d1c86082c5df6fcd13136;hb=8c8a6f597d1c56ebe788a028d70c7851f58dae9f;hp=070929c4921c0bb4d1531809f5e5f962d94c9141;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomAPI_ProjectPointOnSurf.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomAPI_ProjectPointOnSurf.java index 070929c4..20800438 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomAPI_ProjectPointOnSurf.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomAPI_ProjectPointOnSurf.java @@ -1,77 +1,77 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.4 - * - * 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 long swigCPtr; - protected boolean swigCMemOwn; - - public GeomAPI_ProjectPointOnSurf(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public 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); -} - -} +/* ---------------------------------------------------------------------------- + * 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); +} + +}