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.IOExceptionpublic GenericMeshWriter(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static MeshWriter createWriter(java.lang.String fileName) throws java.io.IOException
java.io.IOExceptionpublic static MeshWriter createWriter(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic void setFormat(GenericMeshReader reader)
public void setFormat(java.lang.String fmtStr)
setFormat in interface MeshWriterpublic void setFormat(NumberFormat fmt)
setFormat in interface MeshWriterpublic NumberFormat getFormat()
getFormat in interface MeshWriterpublic void setWriteNormals(int enable)
setWriteNormals in interface MeshWriterpublic int getWriteNormals()
getWriteNormals in interface MeshWriterpublic void writeMesh(MeshBase mesh) throws java.io.IOException
writeMesh in interface MeshWriterjava.io.IOExceptionpublic void close()
close in interface MeshWriterpublic boolean getZeroIndexed()
public void setZeroIndexed(boolean enable)
public static void writeMesh(java.lang.String fileName,
MeshBase mesh)
throws java.io.IOException
java.io.IOExceptionpublic static void writeMesh(java.io.File file,
MeshBase mesh)
throws java.io.IOException
java.io.IOException