X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.jcae.opencascade%2Fsrc-java%2Forg%2Fjcae%2Fopencascade%2Fjni%2FTopExp.java;h=5301827188200bd890a85570ba74ec7414c74831;hb=refs%2Fchanges%2F70%2F3670%2F1;hp=d7e75711fd6750fb075fad7be92d7013e13cbf7d;hpb=471c46e9a685e20de958d77166461aebc7a7b6ee;p=simantics%2F3d.git diff --git a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp.java b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp.java index d7e75711..53018271 100644 --- a/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp.java +++ b/org.jcae.opencascade/src-java/org/jcae/opencascade/jni/TopExp.java @@ -1,58 +1,58 @@ -/* ---------------------------------------------------------------------------- - * 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 TopExp { - private long swigCPtr; - protected boolean swigCMemOwn; - - public TopExp(long cPtr, boolean cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = cPtr; - } - - public static long getCPtr(TopExp obj) { - return (obj == null) ? 0 : obj.swigCPtr; - } - - protected void finalize() { - delete(); - } - - public synchronized void delete() { - if (swigCPtr != 0) { - if (swigCMemOwn) { - swigCMemOwn = false; - OccJavaJNI.delete_TopExp(swigCPtr); - } - swigCPtr = 0; - } - } - - public static TopoDS_Vertex[] vertices(TopoDS_Edge edge) - { - TopoDS_Vertex first=new TopoDS_Vertex(); - TopoDS_Vertex second=new TopoDS_Vertex(); - vertices(edge, first, second); - return new TopoDS_Vertex[]{first, second}; - } - - public static void vertices(TopoDS_Edge E, TopoDS_Vertex Vfirst, TopoDS_Vertex Vlast, boolean CumOri) { - OccJavaJNI.TopExp_vertices__SWIG_0(TopoDS_Edge.getCPtr(E), E, TopoDS_Vertex.getCPtr(Vfirst), Vfirst, TopoDS_Vertex.getCPtr(Vlast), Vlast, CumOri); - } - - public static void vertices(TopoDS_Edge E, TopoDS_Vertex Vfirst, TopoDS_Vertex Vlast) { - OccJavaJNI.TopExp_vertices__SWIG_1(TopoDS_Edge.getCPtr(E), E, TopoDS_Vertex.getCPtr(Vfirst), Vfirst, TopoDS_Vertex.getCPtr(Vlast), Vlast); - } - - public TopExp() { - this(OccJavaJNI.new_TopExp(), 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 TopExp { + private transient long swigCPtr; + protected transient boolean swigCMemOwn; + + protected TopExp(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(TopExp obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if (swigCPtr != 0) { + if (swigCMemOwn) { + swigCMemOwn = false; + OccJavaJNI.delete_TopExp(swigCPtr); + } + swigCPtr = 0; + } + } + + public static TopoDS_Vertex[] vertices(TopoDS_Edge edge) + { + TopoDS_Vertex first=new TopoDS_Vertex(); + TopoDS_Vertex second=new TopoDS_Vertex(); + vertices(edge, first, second); + return new TopoDS_Vertex[]{first, second}; + } + + public static void vertices(TopoDS_Edge E, TopoDS_Vertex Vfirst, TopoDS_Vertex Vlast, boolean CumOri) { + OccJavaJNI.TopExp_vertices__SWIG_0(TopoDS_Edge.getCPtr(E), E, TopoDS_Vertex.getCPtr(Vfirst), Vfirst, TopoDS_Vertex.getCPtr(Vlast), Vlast, CumOri); + } + + public static void vertices(TopoDS_Edge E, TopoDS_Vertex Vfirst, TopoDS_Vertex Vlast) { + OccJavaJNI.TopExp_vertices__SWIG_1(TopoDS_Edge.getCPtr(E), E, TopoDS_Vertex.getCPtr(Vfirst), Vfirst, TopoDS_Vertex.getCPtr(Vlast), Vlast); + } + + public TopExp() { + this(OccJavaJNI.new_TopExp(), true); + } + +}