# OCC.GeomTools module

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

  `Clear`()
    - Clears the content of the set.

    Return type: | None

  `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

  `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

  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

`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

`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 `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

  `Clear`()
    - Clears the content of the set.

    Return type: | None

  `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

  `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

  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

`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

`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 `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

  `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

  `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 (int) –
    Return type: | Handle_Geom_Surface

  `WriteToString`()

    GeomTools_SurfaceSet_WriteToString(GeomTools_SurfaceSet self) -> std::string

  `thisown`

    The membership flag

`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

`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 `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

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`(*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 `GetReal`(*args)
    - 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)

    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

`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

`geomtools_GetReal`(*args)
  - 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)

  Return type: | Handle_GeomTools_UndefinedTypeHandler

`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

`geomtools_SetUndefinedTypeHandler`(*args)

  Parameters: | aHandler (Handle_GeomTools_UndefinedTypeHandler &) –
  Return type: | void

`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

`register_handle`(handle, base_object)

  Inserts the handle into the base object to prevent memory corruption in certain cases