OCC.RWStl module¶
This package contains the methods to be used inthe Stereo Lithograpy Application. The mainfeatures of this application are ,starting from aShape :- mesh this shape with a maximun tolerance,- display the meshing,- write the meshing in a file (binary or ascii),- read of file (binary or ascii) and display it,- translate a binary file to an ascii file,- translate an ascii file to an binary file.
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
rwstl
¶ Bases:
object
-
static
ReadAscii
()¶ - 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;
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
static
ReadBinary
()¶ - 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)
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
static
ReadFile
()¶ - 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.
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
static
WriteAscii
()¶ - write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened;
Parameters: - aMesh (Handle_StlMesh_Mesh &) –
- aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
static
WriteBinary
()¶ - write the meshing in a file following the binary format of an STL file. Returns false if the cannot be opened;
Parameters: - aMesh (Handle_StlMesh_Mesh &) –
- aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
thisown
¶ The membership flag
-
static
-
rwstl_ReadAscii
()¶ - 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;
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
rwstl_ReadBinary
()¶ - 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)
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
rwstl_ReadFile
()¶ - 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.
Parameters: - aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type:
-
rwstl_WriteAscii
()¶ - write the meshing in a file following the Ascii format of an STL file. Returns false if the cannot be opened;
Parameters: - aMesh (Handle_StlMesh_Mesh &) –
- aPath (OSD_Path &) –
- aProgInd (Handle_Message_ProgressIndicator &) – default value is NULL
Return type: