Open CASCADE Technology  7.3.0
Public Member Functions | Static Public Member Functions | Data Fields

StlAPI Class Reference

Offers the API for STL data manipulation. More...

#include <StlAPI.hxx>

Public Member Functions

 Standard_DEPRECATED ("This method is very inefficient; see RWStl class for better alternative") 1 static Standard_Boolean Read(TopoDS_Shape &theShape
 Legacy interface. Read STL file and create a shape composed of triangular faces, one per facet. This approach is very inefficient, especially for large files. Consider reading STL file to Poly_Triangulation object instead (see class RWStl). More...
 

Static Public Member Functions

static Standard_Boolean Write (const TopoDS_Shape &theShape, const Standard_CString theFile, const Standard_Boolean theAsciiMode=Standard_True)
 Convert and write shape to STL format. File is written in binary if aAsciiMode is False otherwise it is written in Ascii (by default). More...
 

Data Fields

const Standard_CString aFile
 

Detailed Description

Offers the API for STL data manipulation.

Member Function Documentation

◆ Standard_DEPRECATED()

StlAPI::Standard_DEPRECATED ( "This method is very inefficient; see RWStl class for better alternative"  ) &

Legacy interface. Read STL file and create a shape composed of triangular faces, one per facet. This approach is very inefficient, especially for large files. Consider reading STL file to Poly_Triangulation object instead (see class RWStl).

◆ Write()

static Standard_Boolean StlAPI::Write ( const TopoDS_Shape theShape,
const Standard_CString  theFile,
const Standard_Boolean  theAsciiMode = Standard_True 
)
static

Convert and write shape to STL format. File is written in binary if aAsciiMode is False otherwise it is written in Ascii (by default).

Field Documentation

◆ aFile

const Standard_CString StlAPI::aFile

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