]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomAPI_ProjectPointOnSurf.java
Updated OpenCASCADE to 7.3.0
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / GeomAPI_ProjectPointOnSurf.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.12
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package org.jcae.opencascade.jni;
10
11 public class GeomAPI_ProjectPointOnSurf {
12   private transient long swigCPtr;
13   protected transient boolean swigCMemOwn;
14
15   protected GeomAPI_ProjectPointOnSurf(long cPtr, boolean cMemoryOwn) {
16     swigCMemOwn = cMemoryOwn;
17     swigCPtr = cPtr;
18   }
19
20   protected static long getCPtr(GeomAPI_ProjectPointOnSurf obj) {
21     return (obj == null) ? 0 : obj.swigCPtr;
22   }
23
24   protected void finalize() {
25     delete();
26   }
27
28   public synchronized void delete() {
29     if (swigCPtr != 0) {
30       if (swigCMemOwn) {
31         swigCMemOwn = false;
32         OccJavaJNI.delete_GeomAPI_ProjectPointOnSurf(swigCPtr);
33       }
34       swigCPtr = 0;
35     }
36   }
37
38         public void lowerDistanceParameters(double[] uv)
39         {
40                 double[] d2=new double[1];
41                 lowerDistanceParameters(uv, d2);
42                 uv[1]=d2[0];
43         }
44
45   public GeomAPI_ProjectPointOnSurf(double[] P, Geom_Surface Surface) {
46     this(OccJavaJNI.new_GeomAPI_ProjectPointOnSurf(P, Geom_Surface.getCPtr(Surface), Surface), true);
47   }
48
49   public void init(double[] P, Geom_Surface surface) {
50     OccJavaJNI.GeomAPI_ProjectPointOnSurf_init(swigCPtr, this, P, Geom_Surface.getCPtr(surface), surface);
51   }
52
53   public int nbPoints() {
54     return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nbPoints(swigCPtr, this);
55   }
56
57   public double lowerDistance() {
58     return OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistance(swigCPtr, this);
59   }
60
61   public double[] point(int Index) {
62         return OccJavaJNI.GeomAPI_ProjectPointOnSurf_point(swigCPtr, this, Index);
63 }
64
65   public void lowerDistanceParameters(double[] U, double[] V) {
66     OccJavaJNI.GeomAPI_ProjectPointOnSurf_lowerDistanceParameters(swigCPtr, this, U, V);
67   }
68
69   public void parameters(int Index, double[] U, double[] V) {
70     OccJavaJNI.GeomAPI_ProjectPointOnSurf_parameters(swigCPtr, this, Index, U, V);
71   }
72
73   public double[] nearestPoint() {
74         return OccJavaJNI.GeomAPI_ProjectPointOnSurf_nearestPoint(swigCPtr, this);
75 }
76
77 }