OCC.GeomTools module

class OCC.GeomTools.GeomTools_Curve2dSet

Bases: object

Add()
  • Incorporate a new Curve in the set and returns its index.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:int
Clear()
  • Clears the content of the set.
Return type:None
Curve2d()
  • Returns the Curve of index <I>.
Parameters:I (Standard_Integer) –
Return type:Handle_Geom2d_Curve
DumpToString()

GeomTools_Curve2dSet_DumpToString(GeomTools_Curve2dSet self) -> std::string

GetProgress()
Return type:Handle_Message_ProgressIndicator
Index()
  • Returns the index of <L>.
Parameters:C (Handle_Geom2d_Curve &) –
Return type:int
static PrintCurve2d(*args)
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

static ReadCurve2d(*args)
  • Reads the curve from the stream. The curve is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • C (Handle_Geom2d_Curve &) –
Return type:

Standard_IStream

ReadFromString()

GeomTools_Curve2dSet_ReadFromString(GeomTools_Curve2dSet self, std::string src)

SetProgress()
Parameters:PR (Handle_Message_ProgressIndicator &) –
Return type:None
WriteToString()

GeomTools_Curve2dSet_WriteToString(GeomTools_Curve2dSet self) -> std::string

thisown

The membership flag

OCC.GeomTools.GeomTools_Curve2dSet_PrintCurve2d(*args)
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

OCC.GeomTools.GeomTools_Curve2dSet_ReadCurve2d(*args)
  • Reads the curve from the stream. The curve is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • C (Handle_Geom2d_Curve &) –
Return type:

Standard_IStream

class OCC.GeomTools.GeomTools_CurveSet

Bases: object

Add()
  • Incorporate a new Curve in the set and returns its index.
Parameters:C (Handle_Geom_Curve &) –
Return type:int
Clear()
  • Clears the content of the set.
Return type:None
Curve()
  • Returns the Curve of index <I>.
Parameters:I (Standard_Integer) –
Return type:Handle_Geom_Curve
DumpToString()

GeomTools_CurveSet_DumpToString(GeomTools_CurveSet self) -> std::string

GetProgress()
Return type:Handle_Message_ProgressIndicator
Index()
  • Returns the index of <L>.
Parameters:C (Handle_Geom_Curve &) –
Return type:int
static PrintCurve(*args)
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

static ReadCurve(*args)
  • Reads the curve from the stream. The curve is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • C (Handle_Geom_Curve &) –
Return type:

Standard_IStream

ReadFromString()

GeomTools_CurveSet_ReadFromString(GeomTools_CurveSet self, std::string src)

SetProgress()
Parameters:PR (Handle_Message_ProgressIndicator &) –
Return type:None
WriteToString()

GeomTools_CurveSet_WriteToString(GeomTools_CurveSet self) -> std::string

thisown

The membership flag

OCC.GeomTools.GeomTools_CurveSet_PrintCurve(*args)
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

OCC.GeomTools.GeomTools_CurveSet_ReadCurve(*args)
  • Reads the curve from the stream. The curve is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • C (Handle_Geom_Curve &) –
Return type:

Standard_IStream

class OCC.GeomTools.GeomTools_SurfaceSet

Bases: object

Add()
  • Incorporate a new Surface in the set and returns its index.
Parameters:S (Handle_Geom_Surface &) –
Return type:int
Clear()
  • Clears the content of the set.
Return type:None
DumpToString()

GeomTools_SurfaceSet_DumpToString(GeomTools_SurfaceSet self) -> std::string

GetProgress()
Return type:Handle_Message_ProgressIndicator
Index()
  • Returns the index of <L>.
Parameters:S (Handle_Geom_Surface &) –
Return type:int
static PrintSurface(*args)
  • Dumps the surface on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the surface on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

ReadFromString()

GeomTools_SurfaceSet_ReadFromString(GeomTools_SurfaceSet self, std::string src)

static ReadSurface(*args)
  • Reads the surface from the stream. The surface is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • S (Handle_Geom_Surface &) –
Return type:

Standard_IStream

SetProgress()
Parameters:PR (Handle_Message_ProgressIndicator &) –
Return type:None
Surface()
  • Returns the Surface of index <I>.
Parameters:I (Standard_Integer) –
Return type:Handle_Geom_Surface
WriteToString()

GeomTools_SurfaceSet_WriteToString(GeomTools_SurfaceSet self) -> std::string

thisown

The membership flag

OCC.GeomTools.GeomTools_SurfaceSet_PrintSurface(*args)
  • Dumps the surface on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

  • Dumps the surface on the stream, if compact is True use the compact format that can be read back.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
Return type:

void

OCC.GeomTools.GeomTools_SurfaceSet_ReadSurface(*args)
  • Reads the surface from the stream. The surface is assumed to have been writtent with the Print method (compact = True).
Parameters:
  • IS (Standard_IStream &) –
  • S (Handle_Geom_Surface &) –
Return type:

Standard_IStream

class OCC.GeomTools.GeomTools_UndefinedTypeHandler

Bases: OCC.MMgt.MMgt_TShared

GetHandle()

GeomTools_UndefinedTypeHandler_GetHandle(GeomTools_UndefinedTypeHandler self) -> Handle_GeomTools_UndefinedTypeHandler

PrintCurve()
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
  • C
  • OS
  • compact – default value is Standard_False
Return type:

void

Return type:

void

PrintCurve2d()
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
  • C
  • OS
  • compact – default value is Standard_False
Return type:

void

Return type:

void

PrintSurface()
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
  • compact (bool) – default value is Standard_False
  • S
  • OS
  • compact – default value is Standard_False
Return type:

void

Return type:

void

ReadCurve()
Parameters:
  • ctype (Standard_Integer) –
  • IS (Standard_IStream &) –
  • C (Handle_Geom_Curve &) –
Return type:

Standard_IStream

ReadCurve2d()
Parameters:
  • ctype (Standard_Integer) –
  • IS (Standard_IStream &) –
  • C (Handle_Geom2d_Curve &) –
Return type:

Standard_IStream

ReadSurface()
Parameters:
  • ctype (Standard_Integer) –
  • IS (Standard_IStream &) –
  • S (Handle_Geom_Surface &) –
Return type:

Standard_IStream

thisown

The membership flag

class OCC.GeomTools.Handle_GeomTools_UndefinedTypeHandler(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

static DownCast()
GetObject()
IsNull()
Nullify()
thisown

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.GeomTools.geomtools(*args, **kwargs)

Bases: object

static Dump(*args)
  • A set of Curves from Geom2d. Dumps the surface on the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the Curve on the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the Curve on the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

static GetUndefinedTypeHandler()
Return type:Handle_GeomTools_UndefinedTypeHandler
static Read(*args)
  • Reads the surface from the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • IS (Standard_IStream &) –
Return type:

void

  • Reads the Curve from the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • IS (Standard_IStream &) –
Return type:

void

  • Reads the Curve from the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • IS (Standard_IStream &) –
Return type:

void

static SetUndefinedTypeHandler(*args)
Parameters:aHandler (Handle_GeomTools_UndefinedTypeHandler &) –
Return type:void
static Write(*args)
  • Writes the surface on the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Writes the Curve on the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Writes the Curve on the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

thisown

The membership flag

OCC.GeomTools.geomtools_Dump(*args)
  • A set of Curves from Geom2d. Dumps the surface on the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the Curve on the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Dumps the Curve on the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

OCC.GeomTools.geomtools_GetUndefinedTypeHandler()
Return type:Handle_GeomTools_UndefinedTypeHandler
OCC.GeomTools.geomtools_Read(*args)
  • Reads the surface from the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • IS (Standard_IStream &) –
Return type:

void

  • Reads the Curve from the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • IS (Standard_IStream &) –
Return type:

void

  • Reads the Curve from the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • IS (Standard_IStream &) –
Return type:

void

OCC.GeomTools.geomtools_SetUndefinedTypeHandler(*args)
Parameters:aHandler (Handle_GeomTools_UndefinedTypeHandler &) –
Return type:void
OCC.GeomTools.geomtools_Write(*args)
  • Writes the surface on the stream.
Parameters:
  • S (Handle_Geom_Surface &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Writes the Curve on the stream.
Parameters:
  • C (Handle_Geom_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void

  • Writes the Curve on the stream.
Parameters:
  • C (Handle_Geom2d_Curve &) –
  • OS (Standard_OStream &) –
Return type:

void