Open CASCADE Technology  6.9.1
Static Public Member Functions
RWStl Class Reference

This package contains the methods to be used in the Stereo Lithograpy Application. The main features of this application are ,starting from a Shape : More...

#include <RWStl.hxx>

Static Public Member Functions

static Standard_Boolean WriteBinary (const Handle< StlMesh_Mesh > &aMesh, const OSD_Path &aPath, const Handle< Message_ProgressIndicator > &aProgInd=NULL)
 write the meshing in a file following the binary format of an STL file. Returns false if the cannot be opened; More...
 
static Standard_Boolean WriteAscii (const Handle< StlMesh_Mesh > &aMesh, const OSD_Path &aPath, const Handle< Message_ProgressIndicator > &aProgInd=NULL)
 write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened; More...
 
static Handle< StlMesh_MeshReadFile (const OSD_Path &aPath, const Handle< Message_ProgressIndicator > &aProgInd=NULL)
 This method will chwck if the file is a binary file or an AsciiFile testing the 5 first characters of the file wich are :"solid" in an ascii file. If we do not find that word we assume that it is a binary file. More...
 
static Handle< StlMesh_MeshReadBinary (const OSD_Path &aPath, const Handle< Message_ProgressIndicator > &aProgInd=NULL)
 Read a meshing from a binary file Raises NoMoreObject from Standard if a statement does not contain the right number of tokens Raises TypeMisMatch if a token has not the good type (often real) More...
 
static Handle< StlMesh_MeshReadAscii (const OSD_Path &aPath, const Handle< Message_ProgressIndicator > &aProgInd=NULL)
 Read a meshing from a binary file Raises NoMoreObject from Standard if a statement does not contain the right number of tokens Raises TypeMisMatch if a token has not the good type (often real) Raises MoMoreObject if a file is finished before having found the word endsolid;. More...
 

Detailed Description

This package contains the methods to be used in the Stereo Lithograpy Application. The main features of this application are ,starting from a Shape :

Member Function Documentation

static Handle< StlMesh_Mesh > RWStl::ReadAscii ( const OSD_Path aPath,
const Handle< Message_ProgressIndicator > &  aProgInd = NULL 
)
static

Read a meshing from a binary file Raises NoMoreObject from Standard if a statement does not contain the right number of tokens Raises TypeMisMatch if a token has not the good type (often real) Raises MoMoreObject if a file is finished before having found the word endsolid;.

static Handle< StlMesh_Mesh > RWStl::ReadBinary ( const OSD_Path aPath,
const Handle< Message_ProgressIndicator > &  aProgInd = NULL 
)
static

Read a meshing from a binary file Raises NoMoreObject from Standard if a statement does not contain the right number of tokens Raises TypeMisMatch if a token has not the good type (often real)

static Handle< StlMesh_Mesh > RWStl::ReadFile ( const OSD_Path aPath,
const Handle< Message_ProgressIndicator > &  aProgInd = NULL 
)
static

This method will chwck if the file is a binary file or an AsciiFile testing the 5 first characters of the file wich are :"solid" in an ascii file. If we do not find that word we assume that it is a binary file.

static Standard_Boolean RWStl::WriteAscii ( const Handle< StlMesh_Mesh > &  aMesh,
const OSD_Path aPath,
const Handle< Message_ProgressIndicator > &  aProgInd = NULL 
)
static

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

static Standard_Boolean RWStl::WriteBinary ( const Handle< StlMesh_Mesh > &  aMesh,
const OSD_Path aPath,
const Handle< Message_ProgressIndicator > &  aProgInd = NULL 
)
static

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


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