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() |
NumberFormat |
getFormat() |
int |
getWriteNormals() |
void |
setFormat(GenericMeshReader reader) |
void |
setFormat(NumberFormat fmt) |
void |
setFormat(java.lang.String fmtStr) |
void |
setWriteNormals(int 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 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 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