maspack.geometry.io
Class GenericMeshWriter
java.lang.Object
maspack.geometry.io.GenericMeshWriter
- All Implemented Interfaces:
- MeshWriter
public class GenericMeshWriter
- extends java.lang.Object
- implements MeshWriter
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericMeshWriter
public GenericMeshWriter(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
GenericMeshWriter
public GenericMeshWriter(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
setFormat
public void setFormat(GenericMeshReader reader)
setFormat
public void setFormat(java.lang.String fmtStr)
- Specified by:
setFormat
in interface MeshWriter
setFormat
public void setFormat(NumberFormat fmt)
- Specified by:
setFormat
in interface MeshWriter
getFormat
public NumberFormat getFormat()
- Specified by:
getFormat
in interface MeshWriter
writeMesh
public void writeMesh(MeshBase mesh)
throws java.io.IOException
- Specified by:
writeMesh
in interface MeshWriter
- Throws:
java.io.IOException
close
public void close()
- Specified by:
close
in interface MeshWriter
writeMesh
public static void writeMesh(java.lang.String fileName,
MeshBase mesh)
throws java.io.IOException
- Throws:
java.io.IOException
writeMesh
public static void writeMesh(java.io.File file,
MeshBase mesh)
throws java.io.IOException
- Throws:
java.io.IOException