/* ---------------------------------------------------------------------------- * 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); } }