![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Reading from stereolithography format. Reads STL file and creates a shape composed of triangular faces, one per facet. IMPORTANT: This approach is very inefficient, especially for large files. IMPORTANT: Consider reading STL file to Poly_Triangulation object instead (see class RWStl). More...
#include <StlAPI_Reader.hxx>
Public Member Functions | |
| bool | Read (TopoDS_Shape &theShape, const char *const theFileName) |
| Reads STL file to the TopoDS_Shape (each triangle is converted to the face). | |
| bool | Read (TopoDS_Shape &theShape, Standard_IStream &theStream) |
| Reads STL data from stream to the TopoDS_Shape (each triangle is converted to the face). | |
Reading from stereolithography format. Reads STL file and creates a shape composed of triangular faces, one per facet. IMPORTANT: This approach is very inefficient, especially for large files. IMPORTANT: Consider reading STL file to Poly_Triangulation object instead (see class RWStl).
| bool StlAPI_Reader::Read | ( | TopoDS_Shape & | theShape, |
| const char *const | theFileName ) |
Reads STL file to the TopoDS_Shape (each triangle is converted to the face).
| bool StlAPI_Reader::Read | ( | TopoDS_Shape & | theShape, |
| Standard_IStream & | theStream ) |
Reads STL data from stream to the TopoDS_Shape (each triangle is converted to the face).
| theShape | result shape |
| theStream | stream to read from |