maspack.geometry.io
Class StlReader
java.lang.Object
maspack.geometry.io.MeshReaderBase
maspack.geometry.io.StlReader
- All Implemented Interfaces:
- MeshReader
public class StlReader
- extends MeshReaderBase
Reads from ascii STL format
- Author:
- Antonio
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TOLERANCE
public static double DEFAULT_TOLERANCE
StlReader
public StlReader(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
StlReader
public StlReader(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
StlReader
public StlReader(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
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 PolygonalMesh readMesh(MeshBase 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