public class StlReader extends MeshReaderBase
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_TOLERANCE |
Constructor and Description |
---|
StlReader(java.io.File file) |
StlReader(java.io.InputStream is) |
StlReader(java.lang.String fileName) |
Modifier and Type | Method and Description |
---|---|
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) |
PolygonalMesh |
readMesh(MeshBase mesh) |
void |
setTolerance(double tol)
Sets tolerance to use when merging vertices
|
close, readMesh
public StlReader(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public StlReader(java.io.File file) throws java.io.IOException
java.io.IOException
public StlReader(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void setTolerance(double tol)
public double getTolerance()
public static PolygonalMesh read(PolygonalMesh mesh, java.io.Reader reader) throws java.io.IOException
java.io.IOException
public static PolygonalMesh read(PolygonalMesh mesh, java.io.Reader reader, double tol) throws java.io.IOException
java.io.IOException
public PolygonalMesh readMesh(MeshBase mesh) throws java.io.IOException
java.io.IOException
public static PolygonalMesh read(java.io.File file) throws java.io.IOException
java.io.IOException
public static PolygonalMesh read(java.lang.String fileName) throws java.io.IOException
java.io.IOException