OCC.RWStl module

class SwigPyIterator(*args, **kwargs)

Bases: object

advance()
copy()
decr()
distance()
equal()
incr()
next()
previous()
thisown

The membership flag

value()
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(*args)
  • 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:

Handle_StlMesh_Mesh

static ReadBinary(*args)
  • 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:

Handle_StlMesh_Mesh

static ReadFile(*args)
  • 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:

Handle_StlMesh_Mesh

static WriteAscii(*args)
  • 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:

bool

static WriteBinary(*args)
  • 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:

bool

thisown

The membership flag

rwstl_ReadAscii(*args)
  • 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:

Handle_StlMesh_Mesh

rwstl_ReadBinary(*args)
  • 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:

Handle_StlMesh_Mesh

rwstl_ReadFile(*args)
  • 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:

Handle_StlMesh_Mesh

rwstl_WriteAscii(*args)
  • 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:

bool

rwstl_WriteBinary(*args)
  • 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:

bool