maspack.geometry.io
Class PlyWriter

java.lang.Object
  extended by maspack.geometry.io.MeshWriterBase
      extended by maspack.geometry.io.PlyWriter
All Implemented Interfaces:
MeshWriter

public class PlyWriter
extends MeshWriterBase

Writes to ascii PLY format

Author:
Antonio

Nested Class Summary
static class PlyWriter.DataType
           
 
Nested classes/interfaces inherited from interface maspack.geometry.io.MeshWriter
MeshWriter.DataFormat, MeshWriter.FloatType
 
Field Summary
 
Fields inherited from class maspack.geometry.io.MeshWriterBase
DEFAULT_FORMAT
 
Constructor Summary
PlyWriter(java.io.File file)
           
PlyWriter(java.io.OutputStream os)
           
PlyWriter(java.lang.String fileName)
           
 
Method Summary
 MeshWriter.DataFormat getDataFormat()
           
 PlyWriter.DataType getFloatType()
           
 void setDataFormat(MeshWriter.DataFormat fmt)
           
 void setFloatType(PlyWriter.DataType type)
           
static void writeMesh(java.io.File file, MeshBase mesh)
           
 void writeMesh(MeshBase mesh)
           
 void writeMesh(PointMesh mesh)
           
 void writeMesh(PolygonalMesh mesh)
           
static void writeMesh(java.lang.String fileName, MeshBase mesh)
           
 
Methods inherited from class maspack.geometry.io.MeshWriterBase
close, getFormat, setFormat, setFormat
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlyWriter

public PlyWriter(java.io.OutputStream os)
          throws java.io.IOException
Throws:
java.io.IOException

PlyWriter

public PlyWriter(java.io.File file)
          throws java.io.IOException
Throws:
java.io.IOException

PlyWriter

public PlyWriter(java.lang.String fileName)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getDataFormat

public MeshWriter.DataFormat getDataFormat()

setDataFormat

public void setDataFormat(MeshWriter.DataFormat fmt)

getFloatType

public PlyWriter.DataType getFloatType()

setFloatType

public void setFloatType(PlyWriter.DataType type)

writeMesh

public void writeMesh(PolygonalMesh mesh)
               throws java.io.IOException
Throws:
java.io.IOException

writeMesh

public void writeMesh(PointMesh mesh)
               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 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