maspack.geometry.io
Class XyzbWriter
java.lang.Object
maspack.geometry.io.MeshWriterBase
maspack.geometry.io.XyzbWriter
- All Implemented Interfaces:
- MeshWriter
public class XyzbWriter
- extends MeshWriterBase
Writes a PointMesh to a binary .xyzb file.
- Author:
- John Lloyd, Jan 2014
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XyzbWriter
public XyzbWriter(java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
XyzbWriter
public XyzbWriter(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
XyzbWriter
public XyzbWriter(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
writeMesh
public void writeMesh(MeshBase mesh)
throws java.io.IOException
- Specified by:
writeMesh
in interface MeshWriter
- Specified by:
writeMesh
in class MeshWriterBase
- Throws:
java.io.IOException
writeMesh
public void writeMesh(BinaryOutputStream bout,
PointMesh mesh)
throws java.io.IOException
- Writes a PointMesh to a PrintWriter, using the binary xyzb
format.
- Parameters:
bout
- Binary output stream to write this mesh tomesh
- PointMesh to be written
- Throws:
java.io.IOException
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