1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package org.jcae.opencascade.jni;
11 public class GeomAPI_ProjectPointOnSurf {
12 private transient long swigCPtr;
13 protected transient boolean swigCMemOwn;
15 protected GeomAPI_ProjectPointOnSurf(long cPtr, boolean cMemoryOwn) {
16 swigCMemOwn = cMemoryOwn;
20 protected static long getCPtr(GeomAPI_ProjectPointOnSurf obj) {
21 return (obj == null) ? 0 : obj.swigCPtr;
24 protected void finalize() {
28 public synchronized void delete() {
32 OccJavaJNI.delete_GeomAPI_ProjectPointOnSurf(swigCPtr);
38 public void lowerDistanceParameters(double[] uv)
40 double[] d2=new double[1];
41 lowerDistanceParameters(uv, d2);
45 public GeomAPI_ProjectPointOnSurf(double[] P, Geom_Surface Surface) {
46 this(OccJavaJNI.new_GeomAPI_ProjectPointOnSurf(P, Geom_Surface.getCPtr(Surface), Surface), true);
49 public void init(double[] P, Geom_Surface surface) {
50 OccJavaJNI.GeomAPI_ProjectPointOnSurf_init(swigCPtr, this, P, Geom_Surface.getCPtr(surface), surface);
53 public int nbPoints() {
54 return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nbPoints(swigCPtr, this);
57 public double lowerDistance() {
58 return OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistance(swigCPtr, this);
61 public double[] point(int Index) {
62 return OccJavaJNI.GeomAPI_ProjectPointOnSurf_point(swigCPtr, this, Index);
65 public void lowerDistanceParameters(double[] U, double[] V) {
66 OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistanceParameters(swigCPtr, this, U, V);
69 public void parameters(int Index, double[] U, double[] V) {
70 OccJavaJNI.GeomAPI_ProjectPointOnSurf_parameters(swigCPtr, this, Index, U, V);
73 public double[] nearestPoint() {
74 return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nearestPoint(swigCPtr, this);