org.jcae.opencascade.jni
Class BRepTools
java.lang.Object
org.jcae.opencascade.jni.BRepTools
public class BRepTools
- extends java.lang.Object
Provides various utilities for BRep.
|
Constructor Summary |
protected |
BRepTools(long cPtr,
boolean cMemoryOwn)
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
swigCMemOwn
protected boolean swigCMemOwn
BRepTools
protected BRepTools(long cPtr,
boolean cMemoryOwn)
getCPtr
protected static long getCPtr(BRepTools obj)
finalize
protected void finalize()
- Overrides:
finalize in class java.lang.Object
read
public static TopoDS_Shape read(java.lang.String file,
BRep_Builder builder)
- Read a shape from a file.
This is an helper method. It do not exists in Opencascade.
- Parameters:
file - the file to readbuilder - the builder which will be used to create the shape (i.e. new BRep_Builder()).
read
public static boolean read(TopoDS_Shape shape,
java.lang.String file,
BRep_Builder builder)
- Reads a shape from a file.
- Parameters:
shape - an empty shape created with new TopoDS_Shape()builder - used to build the shape (i.e. new BRep_Builder()).
- Returns:
- false on IO or file format errors.
write
public static boolean write(TopoDS_Shape shape,
java.lang.String file)
- Write a shape to a file.
- Parameters:
shape - the shape to writefile - the file where to write the shape
- Returns:
- false on IO error.
write
public static void write(TopoDS_Shape Sh,
java.nio.channels.WritableByteChannel S)
read
public static boolean read(TopoDS_Shape shape,
java.nio.channels.ReadableByteChannel input,
BRep_Builder builder)