Open CASCADE Technology 7.9.0
StlAPI_Reader Class Reference

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

Standard_Boolean Read (TopoDS_Shape &theShape, const Standard_CString theFileName)
 Reads STL file to the TopoDS_Shape (each triangle is converted to the face).
 

Detailed Description

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).

Member Function Documentation

◆ Read()

Standard_Boolean StlAPI_Reader::Read ( TopoDS_Shape & theShape,
const Standard_CString theFileName )

Reads STL file to the TopoDS_Shape (each triangle is converted to the face).

Returns
True if reading is successful

The documentation for this class was generated from the following file: