Open CASCADE Technology  7.4.0
Static Public Member Functions

RWStl Class Reference

This class provides methods to read and write triangulation from / to the STL files. More...

#include <RWStl.hxx>

Static Public Member Functions

static Standard_Boolean WriteBinary (const Handle< Poly_Triangulation > &theMesh, const OSD_Path &thePath, const Handle< Message_ProgressIndicator > &theProgInd=Handle< Message_ProgressIndicator >())
 Write triangulation to binary STL file. binary format of an STL file. Returns false if the cannot be opened;. More...
 
static Standard_Boolean WriteAscii (const Handle< Poly_Triangulation > &theMesh, const OSD_Path &thePath, const Handle< Message_ProgressIndicator > &theProgInd=Handle< Message_ProgressIndicator >())
 write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened; More...
 
static Handle< Poly_TriangulationReadFile (const OSD_Path &theFile, const Handle< Message_ProgressIndicator > &aProgInd=Handle< Message_ProgressIndicator >())
 Read specified STL file and returns its content as triangulation. In case of error, returns Null handle. More...
 
static Handle< Poly_TriangulationReadFile (const Standard_CString theFile, const Handle< Message_ProgressIndicator > &aProgInd=Handle< Message_ProgressIndicator >())
 Read specified STL file and returns its content as triangulation. In case of error, returns Null handle. More...
 
static Handle< Poly_TriangulationReadBinary (const OSD_Path &thePath, const Handle< Message_ProgressIndicator > &theProgInd=Handle< Message_ProgressIndicator >())
 Read triangulation from a binary STL file In case of error, returns Null handle. More...
 
static Handle< Poly_TriangulationReadAscii (const OSD_Path &thePath, const Handle< Message_ProgressIndicator > &theProgInd=Handle< Message_ProgressIndicator >())
 Read triangulation from an Ascii STL file In case of error, returns Null handle. More...
 

Detailed Description

This class provides methods to read and write triangulation from / to the STL files.

Member Function Documentation

◆ ReadAscii()

static Handle< Poly_Triangulation > RWStl::ReadAscii ( const OSD_Path thePath,
const Handle< Message_ProgressIndicator > &  theProgInd = HandleMessage_ProgressIndicator >() 
)
static

Read triangulation from an Ascii STL file In case of error, returns Null handle.

◆ ReadBinary()

static Handle< Poly_Triangulation > RWStl::ReadBinary ( const OSD_Path thePath,
const Handle< Message_ProgressIndicator > &  theProgInd = HandleMessage_ProgressIndicator >() 
)
static

Read triangulation from a binary STL file In case of error, returns Null handle.

◆ ReadFile() [1/2]

static Handle< Poly_Triangulation > RWStl::ReadFile ( const OSD_Path theFile,
const Handle< Message_ProgressIndicator > &  aProgInd = HandleMessage_ProgressIndicator >() 
)
static

Read specified STL file and returns its content as triangulation. In case of error, returns Null handle.

◆ ReadFile() [2/2]

static Handle< Poly_Triangulation > RWStl::ReadFile ( const Standard_CString  theFile,
const Handle< Message_ProgressIndicator > &  aProgInd = HandleMessage_ProgressIndicator >() 
)
static

Read specified STL file and returns its content as triangulation. In case of error, returns Null handle.

◆ WriteAscii()

static Standard_Boolean RWStl::WriteAscii ( const Handle< Poly_Triangulation > &  theMesh,
const OSD_Path thePath,
const Handle< Message_ProgressIndicator > &  theProgInd = HandleMessage_ProgressIndicator >() 
)
static

write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened;

◆ WriteBinary()

static Standard_Boolean RWStl::WriteBinary ( const Handle< Poly_Triangulation > &  theMesh,
const OSD_Path thePath,
const Handle< Message_ProgressIndicator > &  theProgInd = HandleMessage_ProgressIndicator >() 
)
static

Write triangulation to binary STL file. binary format of an STL file. Returns false if the cannot be opened;.


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