public class XyzWriter extends MeshWriterBase
MeshWriter.DataFormat, MeshWriter.FloatType
DEFAULT_FORMAT
Constructor and Description |
---|
XyzWriter(java.io.File file) |
XyzWriter(java.io.OutputStream os) |
XyzWriter(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
void |
writeMesh(MeshBase mesh) |
void |
writeMesh(java.io.PrintWriter pw,
PointMesh mesh)
Writes a PointMesh to a PrintWriter, using the simple ascii xyz
format.
|
close, flush, getFormat, getWriteColors, getWriteNormals, setFormat, setFormat, setWriteColors, setWriteNormals
public XyzWriter(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public XyzWriter(java.io.File file) throws java.io.IOException
java.io.IOException
public XyzWriter(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void writeMesh(MeshBase mesh) throws java.io.IOException
writeMesh
in interface MeshWriter
writeMesh
in class MeshWriterBase
java.io.IOException
public void writeMesh(java.io.PrintWriter pw, PointMesh mesh) throws java.io.IOException
The format used to print the vertex and normal coordinates can be
controlled by
MeshWriterBase.setFormat(String)
or MeshWriterBase.setFormat(NumberFormat)
.
The default format has eight decimal places and is specified
by the string "%.8g"
.
pw
- PrintWriter to write this mesh tomesh
- PointMesh to be writtenjava.io.IOException