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 |
---|---|
MeshWriter.DataFormat |
getDataFormat()
Gets the data format that was determined for the file.
|
double |
getTolerance()
Gets tolerance to use when merging vertices
|
static PolygonalMesh |
read(java.io.File file) |
static PolygonalMesh |
read(PolygonalMesh mesh,
java.io.InputStream is,
double tol) |
static PolygonalMesh |
read(java.lang.String fileName) |
static PolygonalMesh |
readASCII(PolygonalMesh mesh,
java.io.Reader reader,
double tol) |
static PolygonalMesh |
readBinary(PolygonalMesh mesh,
java.io.InputStream is,
double tol) |
PolygonalMesh |
readMesh() |
PolygonalMesh |
readMesh(MeshBase mesh) |
void |
setTolerance(double tol)
Sets tolerance to use when merging vertices
|
close
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 MeshWriter.DataFormat getDataFormat()
public static PolygonalMesh read(PolygonalMesh mesh, java.io.InputStream is, double tol) throws java.io.IOException
java.io.IOException
public static PolygonalMesh readBinary(PolygonalMesh mesh, java.io.InputStream is, double tol) throws java.io.IOException
java.io.IOException
public static PolygonalMesh readASCII(PolygonalMesh mesh, java.io.Reader reader, double tol) throws java.io.IOException
java.io.IOException
public PolygonalMesh readMesh() throws java.io.IOException
readMesh
in class MeshReaderBase
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