Open CASCADE Technology 7.9.0
|
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 Message_ProgressRange &theProgress=Message_ProgressRange()) |
Write triangulation to binary STL file. binary format of an STL file. Returns false if the cannot be opened;. | |
static Standard_Boolean | WriteAscii (const Handle< Poly_Triangulation > &theMesh, const OSD_Path &thePath, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened; | |
static Handle< Poly_Triangulation > | ReadFile (const OSD_Path &theFile, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read specified STL file and returns its content as triangulation. In case of error, returns Null handle. | |
static Handle< Poly_Triangulation > | ReadFile (const Standard_CString theFile, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read specified STL file and returns its content as triangulation. In case of error, returns Null handle. | |
static Handle< Poly_Triangulation > | ReadFile (const Standard_CString theFile, const Standard_Real theMergeAngle, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read specified STL file and returns its content as triangulation. | |
static void | ReadFile (const Standard_CString theFile, const Standard_Real theMergeAngle, NCollection_Sequence< Handle< Poly_Triangulation > > &theTriangList, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read specified STL file and fills triangulation list for multi-domain case. | |
static Handle< Poly_Triangulation > | ReadBinary (const OSD_Path &thePath, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read triangulation from a binary STL file In case of error, returns Null handle. | |
static Handle< Poly_Triangulation > | ReadAscii (const OSD_Path &thePath, const Message_ProgressRange &theProgress=Message_ProgressRange()) |
Read triangulation from an Ascii STL file In case of error, returns Null handle. | |
This class provides methods to read and write triangulation from / to the STL files.
|
static |
Read triangulation from an Ascii STL file In case of error, returns Null handle.
|
static |
Read triangulation from a binary STL file In case of error, returns Null handle.
|
static |
Read specified STL file and returns its content as triangulation. In case of error, returns Null handle.
|
inlinestatic |
Read specified STL file and returns its content as triangulation. In case of error, returns Null handle.
|
static |
Read specified STL file and returns its content as triangulation.
[in] | theFile | file path to read |
[in] | theMergeAngle | maximum angle in radians between triangles to merge equal nodes; M_PI/2 means ignore angle |
[in] | theProgress | progress indicator |
|
static |
Read specified STL file and fills triangulation list for multi-domain case.
[in] | theFile | file path to read |
[in] | theMergeAngle | maximum angle in radians between triangles to merge equal nodes; M_PI/2 means ignore angle |
[out] | theTriangList | triangulation list for multi-domain case |
[in] | theProgress | progress indicator |
|
static |
write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened;
|
static |
Write triangulation to binary STL file. binary format of an STL file. Returns false if the cannot be opened;.