-/* ----------------------------------------------------------------------------\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
-/** Provides various utilities for BRep. */\r
-public class BRepTools {\r
- private long swigCPtr;\r
- protected boolean swigCMemOwn;\r
-\r
- public BRepTools(long cPtr, boolean cMemoryOwn) {\r
- swigCMemOwn = cMemoryOwn;\r
- swigCPtr = cPtr;\r
- }\r
-\r
- public static long getCPtr(BRepTools obj) {\r
- return (obj == null) ? 0 : obj.swigCPtr;\r
- }\r
-\r
- protected void finalize() {\r
- delete();\r
- }\r
-\r
- private synchronized void delete() {}\r
-\r
- /**\r
- * Read a shape from a file.\r
- * This is an helper method. It do not exists in Opencascade.\r
- * @param file the file to read\r
- * @param builder the builder which will be used to create the shape (i.e. <code>new BRep_Builder()</code>).\r
- */\r
- public static TopoDS_Shape read(String file, BRep_Builder builder)\r
- {\r
- TopoDS_Shape toReturn=new TopoDS_Shape();\r
- if(read(toReturn, file, builder))\r
- return TopoDS_Shape.downcast(toReturn);\r
- else\r
- return null;\r
- }\r
-\r
- \r
- /**\r
- * Reads a shape from a file.\r
- * @param shape an empty shape created with <code>new TopoDS_Shape()</code>\r
- * @param builder used to build the shape (i.e. <code>new BRep_Builder()</code>).\r
- * @return false on IO or file format errors.\r
- */\r
- public static boolean read(TopoDS_Shape shape, String file, BRep_Builder builder) {\r
- return OccJavaJNI.BRepTools_read__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, file, BRep_Builder.getCPtr(builder), builder);\r
-}\r
-\r
- \r
- /**\r
- * Write a shape to a file.\r
- * @param shape the shape to write\r
- * @param file the file where to write the shape\r
- * @return false on IO error.\r
- */\r
- public static boolean write(TopoDS_Shape shape, String file) {\r
- return OccJavaJNI.BRepTools_write__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, file);\r
-}\r
-\r
- public static void write(TopoDS_Shape Sh, java.nio.channels.WritableByteChannel S) {\r
- OccJavaJNI.BRepTools_write__SWIG_1(TopoDS_Shape.getCPtr(Sh), Sh, S);\r
- }\r
-\r
- public static void clean(TopoDS_Shape S) {\r
- OccJavaJNI.BRepTools_clean(TopoDS_Shape.getCPtr(S), S);\r
- }\r
-\r
- public static boolean read(TopoDS_Shape shape, java.nio.channels.ReadableByteChannel input, BRep_Builder builder) {\r
- return OccJavaJNI.BRepTools_read__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, input, BRep_Builder.getCPtr(builder), builder);\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;
+
+/** Provides various utilities for BRep. */
+public class BRepTools {
+ private transient long swigCPtr;
+ protected transient boolean swigCMemOwn;
+
+ protected BRepTools(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(BRepTools obj) {
+ return (obj == null) ? 0 : obj.swigCPtr;
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ private synchronized void delete() {}
+
+ /**
+ * Read a shape from a file.
+ * This is an helper method. It do not exists in Opencascade.
+ * @param file the file to read
+ * @param builder the builder which will be used to create the shape (i.e. <code>new BRep_Builder()</code>).
+ */
+ public static TopoDS_Shape read(String file, BRep_Builder builder)
+ {
+ TopoDS_Shape toReturn=new TopoDS_Shape();
+ if(read(toReturn, file, builder))
+ return TopoDS_Shape.downcast(toReturn);
+ else
+ return null;
+ }
+
+
+ /**
+ * Reads a shape from a file.
+ * @param shape an empty shape created with <code>new TopoDS_Shape()</code>
+ * @param builder used to build the shape (i.e. <code>new BRep_Builder()</code>).
+ * @return false on IO or file format errors.
+ */
+ public static boolean read(TopoDS_Shape shape, String file, BRep_Builder builder) {
+ return OccJavaJNI.BRepTools_read__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, file, BRep_Builder.getCPtr(builder), builder);
+}
+
+
+ /**
+ * Write a shape to a file.
+ * @param shape the shape to write
+ * @param file the file where to write the shape
+ * @return false on IO error.
+ */
+ public static boolean write(TopoDS_Shape shape, String file) {
+ return OccJavaJNI.BRepTools_write__SWIG_0(TopoDS_Shape.getCPtr(shape), shape, file);
+}
+
+ public static void write(TopoDS_Shape Sh, java.nio.channels.WritableByteChannel S) {
+ OccJavaJNI.BRepTools_write__SWIG_1(TopoDS_Shape.getCPtr(Sh), Sh, S);
+ }
+
+ public static void clean(TopoDS_Shape S) {
+ OccJavaJNI.BRepTools_clean(TopoDS_Shape.getCPtr(S), S);
+ }
+
+ public static boolean read(TopoDS_Shape shape, java.nio.channels.ReadableByteChannel input, BRep_Builder builder) {
+ return OccJavaJNI.BRepTools_read__SWIG_1(TopoDS_Shape.getCPtr(shape), shape, input, BRep_Builder.getCPtr(builder), builder);
+}
+
+}