OCC.GeomTools module¶
The GeomTools package provides utilities for Geometry.* SurfaceSet, CurveSet, Curve2dSet : Tools usedfor dumping, writing and reading.* Methods to dump, write, read curves and surfaces.
- 
class GeomTools_Curve2dSet(*args)¶
- Bases: - object- Returns an empty set of Curves.
 - Return type: - None - 
Add()¶
- Incorporate a new Curve in the set and returns its index.
 - Parameters: - C (Handle_Geom2d_Curve &) – - Return type: - int 
 - 
Curve2d()¶
- Returns the Curve of index <I>.
 - Parameters: - I (int) – - Return type: - Handle_Geom2d_Curve 
 - 
DumpToString()¶
- GeomTools_Curve2dSet_DumpToString(GeomTools_Curve2dSet self) -> std::string 
 - 
GetProgress()¶
- Return type: - Handle_Message_ProgressIndicator 
 - 
static PrintCurve2d()¶
- 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()¶
- 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) 
 - 
WriteToString()¶
- GeomTools_Curve2dSet_WriteToString(GeomTools_Curve2dSet self) -> std::string 
 - 
thisown¶
- The membership flag 
 
- 
GeomTools_Curve2dSet_PrintCurve2d()¶
- 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 
- 
GeomTools_Curve2dSet_ReadCurve2d()¶
- 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 GeomTools_CurveSet(*args)¶
- Bases: - object- Returns an empty set of Curves.
 - Return type: - None - 
Add()¶
- Incorporate a new Curve in the set and returns its index.
 - Parameters: - C (Handle_Geom_Curve &) – - Return type: - int 
 - 
Curve()¶
- Returns the Curve of index <I>.
 - Parameters: - I (int) – - Return type: - Handle_Geom_Curve 
 - 
DumpToString()¶
- GeomTools_CurveSet_DumpToString(GeomTools_CurveSet self) -> std::string 
 - 
GetProgress()¶
- Return type: - Handle_Message_ProgressIndicator 
 - 
static PrintCurve()¶
- 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()¶
- 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) 
 - 
WriteToString()¶
- GeomTools_CurveSet_WriteToString(GeomTools_CurveSet self) -> std::string 
 - 
thisown¶
- The membership flag 
 
- 
GeomTools_CurveSet_PrintCurve()¶
- 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 
- 
GeomTools_CurveSet_ReadCurve()¶
- 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 GeomTools_SurfaceSet(*args)¶
- Bases: - object- Returns an empty set of Surfaces.
 - Return type: - None - 
Add()¶
- Incorporate a new Surface in the set and returns its index.
 - Parameters: - S (Handle_Geom_Surface &) – - Return type: - int 
 - 
DumpToString()¶
- GeomTools_SurfaceSet_DumpToString(GeomTools_SurfaceSet self) -> std::string 
 - 
GetProgress()¶
- Return type: - Handle_Message_ProgressIndicator 
 - 
static PrintSurface()¶
- 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()¶
- 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 
 - 
Surface()¶
- Returns the Surface of index <I>.
 - Parameters: - I (int) – - Return type: - Handle_Geom_Surface 
 - 
WriteToString()¶
- GeomTools_SurfaceSet_WriteToString(GeomTools_SurfaceSet self) -> std::string 
 - 
thisown¶
- The membership flag 
 
- 
GeomTools_SurfaceSet_PrintSurface()¶
- 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 
- 
GeomTools_SurfaceSet_ReadSurface()¶
- 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 GeomTools_UndefinedTypeHandler(*args)¶
- Bases: - OCC.MMgt.MMgt_TShared- Return type: - None - 
GetHandle()¶
 - 
PrintCurve()¶
- Parameters: - C (Handle_Geom_Curve &) –
- OS (Standard_OStream &) –
- compact (bool) – default value is Standard_False
 - Return type: - void 
 - 
PrintCurve2d()¶
- Parameters: - C (Handle_Geom2d_Curve &) –
- OS (Standard_OStream &) –
- compact (bool) – default value is Standard_False
 - Return type: - void 
 - 
PrintSurface()¶
- Parameters: - S (Handle_Geom_Surface &) –
- OS (Standard_OStream &) –
- compact (bool) – default value is Standard_False
 - Return type: - void 
 - 
ReadCurve()¶
- Parameters: - ctype (int) –
- IS (Standard_IStream &) –
- C (Handle_Geom_Curve &) –
 - Return type: - Standard_IStream 
 - 
ReadCurve2d()¶
- Parameters: - ctype (int) –
- IS (Standard_IStream &) –
- C (Handle_Geom2d_Curve &) –
 - Return type: - Standard_IStream 
 - 
ReadSurface()¶
- Parameters: - ctype (int) –
- IS (Standard_IStream &) –
- S (Handle_Geom_Surface &) –
 - Return type: - Standard_IStream 
 - 
thisown¶
- The membership flag 
 
- 
- 
class Handle_GeomTools_UndefinedTypeHandler(*args)¶
- Bases: - OCC.MMgt.Handle_MMgt_TShared- 
static DownCast()¶
 - 
GetObject()¶
 - 
IsNull()¶
 - 
Nullify()¶
 - 
thisown¶
- The membership flag 
 
- 
static 
- 
class SwigPyIterator(*args, **kwargs)¶
- Bases: - object- 
advance()¶
 - 
copy()¶
 - 
decr()¶
 - 
distance()¶
 - 
equal()¶
 - 
incr()¶
 - 
next()¶
 - 
previous()¶
 - 
thisown¶
- The membership flag 
 - 
value()¶
 
- 
- 
class geomtools¶
- Bases: - object- 
static Dump()¶
- 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 GetReal()¶
- Reads the Standard_Real value from the stream. Zero is read in case of error
 - Parameters: - IS (Standard_IStream &) –
- theValue (float &) –
 - Return type: - void 
 - 
static GetUndefinedTypeHandler(*args) → OCC.GeomTools.Handle_GeomTools_UndefinedTypeHandler¶
- Return type: - Handle_GeomTools_UndefinedTypeHandler 
 - 
static Read()¶
- 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()¶
- Parameters: - aHandler (Handle_GeomTools_UndefinedTypeHandler &) – - Return type: - void 
 - 
static Write()¶
- 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 
 
- 
static 
- 
geomtools_Dump()¶
- 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 
- 
geomtools_GetReal()¶
- Reads the Standard_Real value from the stream. Zero is read in case of error
 - Parameters: - IS (Standard_IStream &) –
- theValue (float &) –
 - Return type: - void 
- 
geomtools_GetUndefinedTypeHandler(*args) → OCC.GeomTools.Handle_GeomTools_UndefinedTypeHandler¶
- Return type: - Handle_GeomTools_UndefinedTypeHandler 
- 
geomtools_Read()¶
- 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 
- 
geomtools_SetUndefinedTypeHandler()¶
- Parameters: - aHandler (Handle_GeomTools_UndefinedTypeHandler &) – - Return type: - void 
- 
geomtools_Write()¶
- 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 
- 
new_instancemethod(func, inst, cls)¶
- 
register_handle(handle, base_object)¶
- Inserts the handle into the base object to prevent memory corruption in certain cases