]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.jcae.opencascade/src-java/org/jcae/opencascade/jni/GeomLProp_SLProps.java
Remove dependencies on log4j
[simantics/3d.git] / org.jcae.opencascade / src-java / org / jcae / opencascade / jni / GeomLProp_SLProps.java
index 73f63e7fbe2c61c7c94579fe5aca744362736f9b..03a50c4cda6c5bd43af13911fac538a9d38dd3ba 100644 (file)
-/* ----------------------------------------------------------------------------\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 GeomLProp_SLProps {\r
-  private long swigCPtr;\r
-  protected boolean swigCMemOwn;\r
-\r
-  public GeomLProp_SLProps(long cPtr, boolean cMemoryOwn) {\r
-    swigCMemOwn = cMemoryOwn;\r
-    swigCPtr = cPtr;\r
-  }\r
-\r
-  public static long getCPtr(GeomLProp_SLProps 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_GeomLProp_SLProps(swigCPtr);\r
-      }\r
-      swigCPtr = 0;\r
-    }\r
-  }\r
-\r
-       /**\r
-        * @deprecated Typo mistake in the previous version\r
-        */\r
-       public void setParameter(double u, double v)\r
-       {\r
-               setParameters(u, v);\r
-       }\r
-       \r
-       public double[] normal()\r
-       {\r
-               double[] toReturn=new double[3];\r
-               normal(toReturn);\r
-               return toReturn;\r
-       }\r
-       \r
-       /**Return the normal on the uv nodes.<br>\r
-        *Invalid ones are set to zero.\r
-        */\r
-       public double[] normalArray(double[] uvNodes)\r
-       {\r
-               if(uvNodes==null)\r
-                       throw new NullPointerException();\r
-               \r
-               if(uvNodes.length%2!=0)\r
-                       throw new IllegalArgumentException("uvNodes array length must be peer");\r
-                       \r
-               int numNodes=uvNodes.length/2;\r
-               double[] toReturn=new double[numNodes*3];\r
-               normalArray(uvNodes,toReturn,numNodes);\r
-               \r
-               return toReturn;\r
-       }\r
-       \r
-       public double[] curvatureDirections()\r
-       {\r
-               double[] toReturn=new double[6];\r
-               if(isCurvatureDefined())\r
-               {\r
-                       double[] max=new double[3];\r
-                       double[] min=new double[3];\r
-                       curvatureDirection(max, min);\r
-                       System.arraycopy(max, 0, toReturn, 0, 3);\r
-                       System.arraycopy(min, 0, toReturn, 3, 3);\r
-               }\r
-               return toReturn;\r
-       }\r
-\r
-  \r
-       /**\r
-        * The current point and the derivatives are computed at the same time,\r
-        * which allows an optimization of the computation time.\r
-        * @param degree The maximum number of derivations to be done (0, 1, or 2).\r
-        * For example, to compute only the tangent, N should be equal to 1.\r
-        * @param resolution The linear tolerance (it is used to test if a vector is null).\r
-        */\r
-       public GeomLProp_SLProps(int degree, double resolution) {\r
-    this(OccJavaJNI.new_GeomLProp_SLProps(degree, resolution), true);\r
-  }\r
-\r
-  public void setParameters(double u, double v) {\r
-    OccJavaJNI.GeomLProp_SLProps_setParameters(swigCPtr, this, u, v);\r
-  }\r
-\r
-  public double[] value() {\r
-       return OccJavaJNI.GeomLProp_SLProps_value(swigCPtr, this);\r
-}\r
-\r
-  public double[] d1U() {\r
-       return OccJavaJNI.GeomLProp_SLProps_d1U(swigCPtr, this);\r
-}\r
-\r
-  public double[] d1V() {\r
-       return OccJavaJNI.GeomLProp_SLProps_d1V(swigCPtr, this);\r
-}\r
-\r
-  public double[] d2U() {\r
-       return OccJavaJNI.GeomLProp_SLProps_d2U(swigCPtr, this);\r
-}\r
-\r
-  public double[] d2V() {\r
-       return OccJavaJNI.GeomLProp_SLProps_d2V(swigCPtr, this);\r
-}\r
-\r
-  public double[] dUV() {\r
-       return OccJavaJNI.GeomLProp_SLProps_dUV(swigCPtr, this);\r
-}\r
-\r
-  public boolean isTangentUDefined() {\r
-       return OccJavaJNI.GeomLProp_SLProps_isTangentUDefined(swigCPtr, this);\r
-}\r
-\r
-  public void tangentU(double[] D) {\r
-    OccJavaJNI.GeomLProp_SLProps_tangentU(swigCPtr, this, D);\r
-  }\r
-\r
-  public boolean isTangentVDefined() {\r
-       return OccJavaJNI.GeomLProp_SLProps_isTangentVDefined(swigCPtr, this);\r
-}\r
-\r
-  public void tangentV(double[] D) {\r
-    OccJavaJNI.GeomLProp_SLProps_tangentV(swigCPtr, this, D);\r
-  }\r
-\r
-  public boolean isNormalDefined() {\r
-       return OccJavaJNI.GeomLProp_SLProps_isNormalDefined(swigCPtr, this);\r
-}\r
-\r
-  public boolean isCurvatureDefined() {\r
-       return OccJavaJNI.GeomLProp_SLProps_isCurvatureDefined(swigCPtr, this);\r
-}\r
-\r
-  public boolean isUmbilic() {\r
-       return OccJavaJNI.GeomLProp_SLProps_isUmbilic(swigCPtr, this);\r
-}\r
-\r
-  public double meanCurvature() {\r
-    return OccJavaJNI.GeomLProp_SLProps_meanCurvature(swigCPtr, this);\r
-  }\r
-\r
-  public double gaussianCurvature() {\r
-    return OccJavaJNI.GeomLProp_SLProps_gaussianCurvature(swigCPtr, this);\r
-  }\r
-\r
-  public void setSurface(Geom_Surface S) {\r
-    OccJavaJNI.GeomLProp_SLProps_setSurface(swigCPtr, this, Geom_Surface.getCPtr(S), S);\r
-  }\r
-\r
-  public void normal(double[] normal) {\r
-    OccJavaJNI.GeomLProp_SLProps_normal(swigCPtr, this, normal);\r
-  }\r
-\r
-  private void normalArray(double[] uvNodes, double[] normalArray, int numNodes) {\r
-    OccJavaJNI.GeomLProp_SLProps_normalArray(swigCPtr, this, uvNodes, normalArray, numNodes);\r
-  }\r
-\r
-  public double minCurvature() {\r
-    return OccJavaJNI.GeomLProp_SLProps_minCurvature(swigCPtr, this);\r
-  }\r
-\r
-  public double maxCurvature() {\r
-    return OccJavaJNI.GeomLProp_SLProps_maxCurvature(swigCPtr, this);\r
-  }\r
-\r
-  public void curvatureDirection(double[] jmax, double[] jmin) {\r
-    OccJavaJNI.GeomLProp_SLProps_curvatureDirection(swigCPtr, this, jmax, jmin);\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 GeomLProp_SLProps {
+  private transient long swigCPtr;
+  protected transient boolean swigCMemOwn;
+
+  protected GeomLProp_SLProps(long cPtr, boolean cMemoryOwn) {
+    swigCMemOwn = cMemoryOwn;
+    swigCPtr = cPtr;
+  }
+
+  protected static long getCPtr(GeomLProp_SLProps obj) {
+    return (obj == null) ? 0 : obj.swigCPtr;
+  }
+
+  protected void finalize() {
+    delete();
+  }
+
+  public synchronized void delete() {
+    if (swigCPtr != 0) {
+      if (swigCMemOwn) {
+        swigCMemOwn = false;
+        OccJavaJNI.delete_GeomLProp_SLProps(swigCPtr);
+      }
+      swigCPtr = 0;
+    }
+  }
+
+       /**
+        * @deprecated Typo mistake in the previous version
+        */
+       public void setParameter(double u, double v)
+       {
+               setParameters(u, v);
+       }
+       
+       public double[] normal()
+       {
+               double[] toReturn=new double[3];
+               normal(toReturn);
+               return toReturn;
+       }
+       
+       /**Return the normal on the uv nodes.<br>
+        *Invalid ones are set to zero.
+        */
+       public double[] normalArray(double[] uvNodes)
+       {
+               if(uvNodes==null)
+                       throw new NullPointerException();
+               
+               if(uvNodes.length%2!=0)
+                       throw new IllegalArgumentException("uvNodes array length must be peer");
+                       
+               int numNodes=uvNodes.length/2;
+               double[] toReturn=new double[numNodes*3];
+               normalArray(uvNodes,toReturn,numNodes);
+               
+               return toReturn;
+       }
+       
+       public double[] curvatureDirections()
+       {
+               double[] toReturn=new double[6];
+               if(isCurvatureDefined())
+               {
+                       double[] max=new double[3];
+                       double[] min=new double[3];
+                       curvatureDirection(max, min);
+                       System.arraycopy(max, 0, toReturn, 0, 3);
+                       System.arraycopy(min, 0, toReturn, 3, 3);
+               }
+               return toReturn;
+       }
+
+  
+       /**
+        * The current point and the derivatives are computed at the same time,
+        * which allows an optimization of the computation time.
+        * @param degree The maximum number of derivations to be done (0, 1, or 2).
+        * For example, to compute only the tangent, N should be equal to 1.
+        * @param resolution The linear tolerance (it is used to test if a vector is null).
+        */
+       public GeomLProp_SLProps(int degree, double resolution) {
+    this(OccJavaJNI.new_GeomLProp_SLProps(degree, resolution), true);
+  }
+
+  public void setParameters(double u, double v) {
+    OccJavaJNI.GeomLProp_SLProps_setParameters(swigCPtr, this, u, v);
+  }
+
+  public double[] value() {
+       return OccJavaJNI.GeomLProp_SLProps_value(swigCPtr, this);
+}
+
+  public double[] d1U() {
+       return OccJavaJNI.GeomLProp_SLProps_d1U(swigCPtr, this);
+}
+
+  public double[] d1V() {
+       return OccJavaJNI.GeomLProp_SLProps_d1V(swigCPtr, this);
+}
+
+  public double[] d2U() {
+       return OccJavaJNI.GeomLProp_SLProps_d2U(swigCPtr, this);
+}
+
+  public double[] d2V() {
+       return OccJavaJNI.GeomLProp_SLProps_d2V(swigCPtr, this);
+}
+
+  public double[] dUV() {
+       return OccJavaJNI.GeomLProp_SLProps_dUV(swigCPtr, this);
+}
+
+  public boolean isTangentUDefined() {
+       return OccJavaJNI.GeomLProp_SLProps_isTangentUDefined(swigCPtr, this);
+}
+
+  public void tangentU(double[] D) {
+    OccJavaJNI.GeomLProp_SLProps_tangentU(swigCPtr, this, D);
+  }
+
+  public boolean isTangentVDefined() {
+       return OccJavaJNI.GeomLProp_SLProps_isTangentVDefined(swigCPtr, this);
+}
+
+  public void tangentV(double[] D) {
+    OccJavaJNI.GeomLProp_SLProps_tangentV(swigCPtr, this, D);
+  }
+
+  public boolean isNormalDefined() {
+       return OccJavaJNI.GeomLProp_SLProps_isNormalDefined(swigCPtr, this);
+}
+
+  public boolean isCurvatureDefined() {
+       return OccJavaJNI.GeomLProp_SLProps_isCurvatureDefined(swigCPtr, this);
+}
+
+  public boolean isUmbilic() {
+       return OccJavaJNI.GeomLProp_SLProps_isUmbilic(swigCPtr, this);
+}
+
+  public double meanCurvature() {
+    return OccJavaJNI.GeomLProp_SLProps_meanCurvature(swigCPtr, this);
+  }
+
+  public double gaussianCurvature() {
+    return OccJavaJNI.GeomLProp_SLProps_gaussianCurvature(swigCPtr, this);
+  }
+
+  public void setSurface(Geom_Surface S) {
+    OccJavaJNI.GeomLProp_SLProps_setSurface(swigCPtr, this, Geom_Surface.getCPtr(S), S);
+  }
+
+  public void normal(double[] normal) {
+    OccJavaJNI.GeomLProp_SLProps_normal(swigCPtr, this, normal);
+  }
+
+  private void normalArray(double[] uvNodes, double[] normalArray, int numNodes) {
+    OccJavaJNI.GeomLProp_SLProps_normalArray(swigCPtr, this, uvNodes, normalArray, numNodes);
+  }
+
+  public double minCurvature() {
+    return OccJavaJNI.GeomLProp_SLProps_minCurvature(swigCPtr, this);
+  }
+
+  public double maxCurvature() {
+    return OccJavaJNI.GeomLProp_SLProps_maxCurvature(swigCPtr, this);
+  }
+
+  public void curvatureDirection(double[] jmax, double[] jmin) {
+    OccJavaJNI.GeomLProp_SLProps_curvatureDirection(swigCPtr, this, jmax, jmin);
+  }
+
+}