Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
StlAPI Class Reference

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

#include <StlAPI.hxx>

Static Public Member Functions

static bool Write (const TopoDS_Shape &theShape, const char *const theFile, const bool theAsciiMode=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).
 
static bool Read (TopoDS_Shape &theShape, const char *const aFile)
 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).
 

Detailed Description

Offers the API for STL data manipulation.

Member Function Documentation

◆ Read()

static bool StlAPI::Read ( TopoDS_Shape & theShape,
const char *const aFile )
static

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

Deprecated
("This method is very inefficient; see RWStl class for better alternative")

◆ Write()

static bool StlAPI::Write ( const TopoDS_Shape & theShape,
const char *const theFile,
const bool theAsciiMode = 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).


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