public class GenericMeshWriter extends java.lang.Object implements MeshWriter
MeshWriter.DataFormat, MeshWriter.FloatType
Constructor and Description |
---|
GenericMeshWriter(java.io.File file) |
GenericMeshWriter(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static MeshWriter |
createWriter(java.io.File file) |
static MeshWriter |
createWriter(java.lang.String fileName) |
NumberFormat |
getFormat() |
int |
getWriteNormals() |
boolean |
getZeroIndexed() |
void |
setFormat(GenericMeshReader reader) |
void |
setFormat(NumberFormat fmt) |
void |
setFormat(java.lang.String fmtStr) |
void |
setWriteNormals(int enable) |
void |
setZeroIndexed(boolean enable) |
static void |
writeMesh(java.io.File file,
MeshBase mesh) |
void |
writeMesh(MeshBase mesh) |
static void |
writeMesh(java.lang.String fileName,
MeshBase mesh) |
public GenericMeshWriter(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public GenericMeshWriter(java.io.File file) throws java.io.IOException
java.io.IOException
public static MeshWriter createWriter(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static MeshWriter createWriter(java.io.File file) throws java.io.IOException
java.io.IOException
public void setFormat(GenericMeshReader reader)
public void setFormat(java.lang.String fmtStr)
setFormat
in interface MeshWriter
public void setFormat(NumberFormat fmt)
setFormat
in interface MeshWriter
public NumberFormat getFormat()
getFormat
in interface MeshWriter
public void setWriteNormals(int enable)
setWriteNormals
in interface MeshWriter
public int getWriteNormals()
getWriteNormals
in interface MeshWriter
public void writeMesh(MeshBase mesh) throws java.io.IOException
writeMesh
in interface MeshWriter
java.io.IOException
public void close()
close
in interface MeshWriter
public boolean getZeroIndexed()
public void setZeroIndexed(boolean enable)
public static void writeMesh(java.lang.String fileName, MeshBase mesh) throws java.io.IOException
java.io.IOException
public static void writeMesh(java.io.File file, MeshBase mesh) throws java.io.IOException
java.io.IOException