public class BinaryOFF
extends java.lang.Object
Remark: this class requires at least Java 1.7
Constructor and Description |
---|
BinaryOFF() |
Modifier and Type | Method and Description |
---|---|
static void |
allocateMemory() |
static Polyhedron_3 |
fromBinaryOFFToPolyhedron(java.lang.String input)
Read a triangle mesh in binary OFF format and directly construct the corresponding Half-edge representation.
|
static SharedVertexRepresentation |
fromBinaryOFFToSharedRepresentation(java.lang.String input)
Read a triangle mesh in binary OFF format and construct the corresponding shared vertex representation
|
static void |
fromOFFToBinaryOFF(java.lang.String input,
java.lang.String output)
Read a triangle mesh in standard OFF format (text file) and convert it into a binary format
|
static void |
runGC() |
static void |
vertexDistribution(Polyhedron_3<Point_3> mesh) |
public static void fromOFFToBinaryOFF(java.lang.String input, java.lang.String output)
Warning: it works only for planar triangle meshes (without boundaries)
public static SharedVertexRepresentation fromBinaryOFFToSharedRepresentation(java.lang.String input)
Warning: it works only for planar triangle meshes (without boundaries)
The input format is the following
n
x1 y1 z1
x2 y2 z2
... ... ...
v11 v12 v13
v21 v22 v23
v31 v32 v33
v41 v42 v43
All numbers (integers and floats) are encoding on 32 bits (four bytes each) spaces between numbers and other characters are not encoded
public static Polyhedron_3 fromBinaryOFFToPolyhedron(java.lang.String input)
Warning: it works only for planar triangle meshes (without boundaries): all face degrees are assumed to be 3.
The input format is the following
n
x1 y1 z1
x2 y2 z2
... ... ...
v11 v12 v13
v21 v22 v23
v31 v32 v33
v41 v42 v43
All numbers (integers and floats) are encoding on 32 bits in the input file (using four bytes each). Spaces between numbers and other characters are not encoded
public static void runGC()
public static void allocateMemory()
public static void vertexDistribution(Polyhedron_3<Point_3> mesh)