OCC.RWStl module

class OCC.RWStl.SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class OCC.RWStl.rwstl(*args, **kwargs)

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

  • 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

  • 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

  • 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

  • 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

  • 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

OCC.RWStl.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

  • 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

OCC.RWStl.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

  • 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

OCC.RWStl.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

  • 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

OCC.RWStl.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

  • 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

OCC.RWStl.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

  • 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