maspack.geometry.io
Class VtkAsciiReader

java.lang.Object
  extended by maspack.geometry.io.MeshReaderBase
      extended by maspack.geometry.io.VtkAsciiReader
All Implemented Interfaces:
MeshReader

public class VtkAsciiReader
extends MeshReaderBase

Reads from ascii STL format

Author:
Antonio

Field Summary
static double DEFAULT_TOLERANCE
           
 
Constructor Summary
VtkAsciiReader(java.io.File file)
           
VtkAsciiReader(java.io.InputStream is)
           
VtkAsciiReader(java.lang.String fileName)
           
 
Method Summary
 double getTolerance()
          Gets tolerance to use when merging vertices
static PolygonalMesh read(java.io.File file)
           
static PolygonalMesh read(PolygonalMesh mesh, java.io.Reader reader)
           
static PolygonalMesh read(PolygonalMesh mesh, java.io.Reader reader, double tol)
           
static PolygonalMesh read(java.lang.String fileName)
           
 MeshBase readMesh(MeshBase mesh)
           
 PolygonalMesh readMesh(PolygonalMesh mesh)
           
 void setTolerance(double tol)
          Sets tolerance to use when merging vertices
 
Methods inherited from class maspack.geometry.io.MeshReaderBase
close, readMesh
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TOLERANCE

public static double DEFAULT_TOLERANCE
Constructor Detail

VtkAsciiReader

public VtkAsciiReader(java.io.InputStream is)
               throws java.io.IOException
Throws:
java.io.IOException

VtkAsciiReader

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

VtkAsciiReader

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

setTolerance

public void setTolerance(double tol)
Sets tolerance to use when merging vertices


getTolerance

public double getTolerance()
Gets tolerance to use when merging vertices


read

public static PolygonalMesh read(PolygonalMesh mesh,
                                 java.io.Reader reader)
                          throws java.io.IOException
Throws:
java.io.IOException

read

public static PolygonalMesh read(PolygonalMesh mesh,
                                 java.io.Reader reader,
                                 double tol)
                          throws java.io.IOException
Throws:
java.io.IOException

readMesh

public MeshBase readMesh(MeshBase mesh)
                  throws java.io.IOException
Throws:
java.io.IOException

readMesh

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

read

public static PolygonalMesh read(java.io.File file)
                          throws java.io.IOException
Throws:
java.io.IOException

read

public static PolygonalMesh read(java.lang.String fileName)
                          throws java.io.IOException
Throws:
java.io.IOException