X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FBRep_Tool.java;h=6ba819d52bfd4144258684850e86a7156d3cb02e;hb=refs%2Fchanges%2F21%2F3521%2F1;hp=9c10725101d5877fc1c2e8f5b7ee99da2da6c01d;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRep_Tool.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRep_Tool.java index 9c107251..6ba819d5 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRep_Tool.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/BRep_Tool.java @@ -1,125 +1,125 @@ -/* ---------------------------------------------------------------------------- - * 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 BRep_Tool { - private long swigCPtr; - protected boolean swigCMemOwn; - - public BRep_Tool(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(BRep_Tool obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_BRep_Tool(swigCPtr); - } - swigCPtr = 0; - } - } - - public static double[] range(TopoDS_Edge edge) - { - double[] toReturn=new double[2]; - range(edge, toReturn); - return toReturn; - } - - public static Geom2d_Curve curveOnSurface(TopoDS_Edge e, TopoDS_Face f, double[] range) - { - double[] d2=new double[1]; - Geom2d_Curve toReturn=curveOnSurface(e, f, range, d2); - range[1]=d2[0]; - return toReturn; - } - - public static Geom_Curve curve(TopoDS_Edge e, double[] range) - { - double[] d2=new double[1]; - Geom_Curve toReturn=curve(e, range, d2); - range[1]=d2[0]; - return toReturn; - } - - public static double[] pnt(TopoDS_Vertex V) { - return OccJavaJNI.BRep_Tool_pnt(TopoDS_Vertex.getCPtr(V), V); -} - - public static double[] parameters(TopoDS_Vertex V, TopoDS_Face F) { - return OccJavaJNI.BRep_Tool_parameters(TopoDS_Vertex.getCPtr(V), V, TopoDS_Face.getCPtr(F), F); -} - - public static double parameter(TopoDS_Vertex V, TopoDS_Edge E) { - return OccJavaJNI.BRep_Tool_parameter(TopoDS_Vertex.getCPtr(V), V, TopoDS_Edge.getCPtr(E), E); - } - - public static boolean degenerated(TopoDS_Edge E) { - return OccJavaJNI.BRep_Tool_degenerated(TopoDS_Edge.getCPtr(E), E); -} - - public static boolean hasContinuity(TopoDS_Edge E, TopoDS_Face F1, TopoDS_Face F2) { - return OccJavaJNI.BRep_Tool_hasContinuity(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F1), F1, TopoDS_Face.getCPtr(F2), F2); -} - - public static GeomAbs_Shape continuity(TopoDS_Edge E, TopoDS_Face F1, TopoDS_Face F2) { - return GeomAbs_Shape.swigToEnum(OccJavaJNI.BRep_Tool_continuity(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F1), F1, TopoDS_Face.getCPtr(F2), F2)); - } - - public static double tolerance(TopoDS_Face F) { - return OccJavaJNI.BRep_Tool_tolerance__SWIG_0(TopoDS_Face.getCPtr(F), F); - } - - public static double tolerance(TopoDS_Edge E) { - return OccJavaJNI.BRep_Tool_tolerance__SWIG_1(TopoDS_Edge.getCPtr(E), E); - } - - public static double tolerance(TopoDS_Vertex V) { - return OccJavaJNI.BRep_Tool_tolerance__SWIG_2(TopoDS_Vertex.getCPtr(V), V); - } - - public static Poly_Triangulation triangulation(TopoDS_Face F, TopLoc_Location L) { - long cPtr = OccJavaJNI.BRep_Tool_triangulation(TopoDS_Face.getCPtr(F), F, TopLoc_Location.getCPtr(L), L); - return (cPtr == 0) ? null : new Poly_Triangulation(cPtr, false); - } - - public static void range(TopoDS_Edge E, double[] range) { - OccJavaJNI.BRep_Tool_range(TopoDS_Edge.getCPtr(E), E, range); - } - - public static Geom_Curve curve(TopoDS_Edge E, double[] First, double[] Last) { - long cPtr = OccJavaJNI.BRep_Tool_curve(TopoDS_Edge.getCPtr(E), E, First, Last); - return (cPtr == 0) ? null : new Geom_Curve(cPtr, false); - } - - public static Geom_Surface surface(TopoDS_Face F) { - long cPtr = OccJavaJNI.BRep_Tool_surface(TopoDS_Face.getCPtr(F), F); - return (cPtr == 0) ? null : new Geom_Surface(cPtr, false); - } - - public static Geom2d_Curve curveOnSurface(TopoDS_Edge E, TopoDS_Face F, double[] First, double[] Last) { - long cPtr = OccJavaJNI.BRep_Tool_curveOnSurface(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F), F, First, Last); - return (cPtr == 0) ? null : new Geom2d_Curve(cPtr, false); - } - - public BRep_Tool() { - this(OccJavaJNI.new_BRep_Tool(), true); - } - -} +/* ---------------------------------------------------------------------------- + * 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 BRep_Tool { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected BRep_Tool(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(BRep_Tool obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_BRep_Tool(swigCPtr); + } + swigCPtr = 0; + } + } + + public static double[] range(TopoDS_Edge edge) + { + double[] toReturn=new double[2]; + range(edge, toReturn); + return toReturn; + } + + public static Geom2d_Curve curveOnSurface(TopoDS_Edge e, TopoDS_Face f, double[] range) + { + double[] d2=new double[1]; + Geom2d_Curve toReturn=curveOnSurface(e, f, range, d2); + range[1]=d2[0]; + return toReturn; + } + + public static Geom_Curve curve(TopoDS_Edge e, double[] range) + { + double[] d2=new double[1]; + Geom_Curve toReturn=curve(e, range, d2); + range[1]=d2[0]; + return toReturn; + } + + public static double[] pnt(TopoDS_Vertex V) { + return OccJavaJNI.BRep_Tool_pnt(TopoDS_Vertex.getCPtr(V), V); +} + + public static double[] parameters(TopoDS_Vertex V, TopoDS_Face F) { + return OccJavaJNI.BRep_Tool_parameters(TopoDS_Vertex.getCPtr(V), V, TopoDS_Face.getCPtr(F), F); +} + + public static double parameter(TopoDS_Vertex V, TopoDS_Edge E) { + return OccJavaJNI.BRep_Tool_parameter(TopoDS_Vertex.getCPtr(V), V, TopoDS_Edge.getCPtr(E), E); + } + + public static boolean degenerated(TopoDS_Edge E) { + return OccJavaJNI.BRep_Tool_degenerated(TopoDS_Edge.getCPtr(E), E); +} + + public static boolean hasContinuity(TopoDS_Edge E, TopoDS_Face F1, TopoDS_Face F2) { + return OccJavaJNI.BRep_Tool_hasContinuity(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F1), F1, TopoDS_Face.getCPtr(F2), F2); +} + + public static GeomAbs_Shape continuity(TopoDS_Edge E, TopoDS_Face F1, TopoDS_Face F2) { + return GeomAbs_Shape.swigToEnum(OccJavaJNI.BRep_Tool_continuity(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F1), F1, TopoDS_Face.getCPtr(F2), F2)); + } + + public static double tolerance(TopoDS_Face F) { + return OccJavaJNI.BRep_Tool_tolerance__SWIG_0(TopoDS_Face.getCPtr(F), F); + } + + public static double tolerance(TopoDS_Edge E) { + return OccJavaJNI.BRep_Tool_tolerance__SWIG_1(TopoDS_Edge.getCPtr(E), E); + } + + public static double tolerance(TopoDS_Vertex V) { + return OccJavaJNI.BRep_Tool_tolerance__SWIG_2(TopoDS_Vertex.getCPtr(V), V); + } + + public static Poly_Triangulation triangulation(TopoDS_Face F, TopLoc_Location L) { + long cPtr = OccJavaJNI.BRep_Tool_triangulation(TopoDS_Face.getCPtr(F), F, TopLoc_Location.getCPtr(L), L); + return (cPtr == 0) ? null : new Poly_Triangulation(cPtr, false); + } + + public static void range(TopoDS_Edge E, double[] range) { + OccJavaJNI.BRep_Tool_range(TopoDS_Edge.getCPtr(E), E, range); + } + + public static Geom_Curve curve(TopoDS_Edge E, double[] First, double[] Last) { + long cPtr = OccJavaJNI.BRep_Tool_curve(TopoDS_Edge.getCPtr(E), E, First, Last); + return (cPtr == 0) ? null : new Geom_Curve(cPtr, false); + } + + public static Geom_Surface surface(TopoDS_Face F) { + long cPtr = OccJavaJNI.BRep_Tool_surface(TopoDS_Face.getCPtr(F), F); + return (cPtr == 0) ? null : new Geom_Surface(cPtr, false); + } + + public static Geom2d_Curve curveOnSurface(TopoDS_Edge E, TopoDS_Face F, double[] First, double[] Last) { + long cPtr = OccJavaJNI.BRep_Tool_curveOnSurface(TopoDS_Edge.getCPtr(E), E, TopoDS_Face.getCPtr(F), F, First, Last); + return (cPtr == 0) ? null : new Geom2d_Curve(cPtr, false); + } + + public BRep_Tool() { + this(OccJavaJNI.new_BRep_Tool(), true); + } + +}