maspack.geometry.io
Class StlWriter

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

public class StlWriter
extends MeshWriterBase

Writes to ascii STL format

Author:
Antonio

Nested Class Summary
 
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
StlWriter(java.io.File file)
           
StlWriter(java.io.OutputStream os)
           
StlWriter(java.lang.String fileName)
           
 
Method Summary
 void writeMesh(MeshBase mesh)
           
 void writeMesh(PolygonalMesh 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

StlWriter

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

StlWriter

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

StlWriter

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

writeMesh

public void writeMesh(PolygonalMesh 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