OCC.Core.GeomTools module

GeomTools module, see official documentation at https://www.opencascade.com/doc/occt-7.4.0/refman/html/package_geomtools.html

class GeomTools_Curve2dSet(*args)

Bases: object

  • Returns an empty set of Curves.
    rtype

    None

Add()
  • Incorporate a new Curve in the set and returns its index.
    param C

    type C

    Geom2d_Curve

    rtype

    int

Clear()
  • Clears the content of the set.
    rtype

    None

Curve2d()
  • Returns the Curve of index <I>.
    param I

    type I

    int

    rtype

    opencascade::handle<Geom2d_Curve>

DumpToString(GeomTools_Curve2dSet self) → std::string
GetProgress()
Return type

opencascade::handle<Message_ProgressIndicator>

Index()
  • Returns the index of <L>.
    param C

    type C

    Geom2d_Curve

    rtype

    int

static PrintCurve2d()
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
    param C

    type C

    Geom2d_Curve

    param OS

    type OS

    Standard_OStream

    param compact

    default value is Standard_False

    type compact

    bool

    rtype

    void

ReadCurve2dFromString(GeomTools_Curve2dSet self, std::string src)
ReadFromString(GeomTools_Curve2dSet self, std::string src)
SetProgress()
Parameters

PR

type PR

Message_ProgressIndicator

rtype

None

WriteToString(GeomTools_Curve2dSet self) → std::string
property thisown

The membership flag

class GeomTools_CurveSet(*args)

Bases: object

  • Returns an empty set of Curves.
    rtype

    None

Add()
  • Incorporate a new Curve in the set and returns its index.
    param C

    type C

    Geom_Curve

    rtype

    int

Clear()
  • Clears the content of the set.
    rtype

    None

Curve()
  • Returns the Curve of index <I>.
    param I

    type I

    int

    rtype

    opencascade::handle<Geom_Curve>

DumpToString(GeomTools_CurveSet self) → std::string
GetProgress()
Return type

opencascade::handle<Message_ProgressIndicator>

Index()
  • Returns the index of <L>.
    param C

    type C

    Geom_Curve

    rtype

    int

static PrintCurve()
  • Dumps the curve on the stream, if compact is True use the compact format that can be read back.
    param C

    type C

    Geom_Curve

    param OS

    type OS

    Standard_OStream

    param compact

    default value is Standard_False

    type compact

    bool

    rtype

    void

ReadCurveFromString(GeomTools_CurveSet self, std::string src)
ReadFromString(GeomTools_CurveSet self, std::string src)
SetProgress()
Parameters

PR

type PR

Message_ProgressIndicator

rtype

None

WriteToString(GeomTools_CurveSet self) → std::string
property thisown

The membership flag

class GeomTools_SurfaceSet(*args)

Bases: object

  • Returns an empty set of Surfaces.
    rtype

    None

Add()
  • Incorporate a new Surface in the set and returns its index.
    param S

    type S

    Geom_Surface

    rtype

    int

Clear()
  • Clears the content of the set.
    rtype

    None

DumpToString(GeomTools_SurfaceSet self) → std::string
GetProgress()
Return type

opencascade::handle<Message_ProgressIndicator>

Index()
  • Returns the index of <L>.
    param S

    type S

    Geom_Surface

    rtype

    int

static PrintSurface()
  • Dumps the surface on the stream, if compact is True use the compact format that can be read back.
    param S

    type S

    Geom_Surface

    param OS

    type OS

    Standard_OStream

    param compact

    default value is Standard_False

    type compact

    bool

    rtype

    void

ReadFromString(GeomTools_SurfaceSet self, std::string src)
ReadSurfaceFromString(GeomTools_SurfaceSet self, std::string src)
SetProgress()
Parameters

PR

type PR

Message_ProgressIndicator

rtype

None

Surface()
  • Returns the Surface of index <I>.
    param I

    type I

    int

    rtype

    opencascade::handle<Geom_Surface>

WriteToString(GeomTools_SurfaceSet self) → std::string
property thisown

The membership flag

class GeomTools_UndefinedTypeHandler(*args)

Bases: OCC.Core.Standard.Standard_Transient

Return type

None

static DownCast(t)
PrintCurve()
Parameters

C

type C

Geom_Curve

param OS

type OS

Standard_OStream

param compact

default value is Standard_False

type compact

bool

rtype

void

PrintCurve2d()
Parameters

C

type C

Geom2d_Curve

param OS

type OS

Standard_OStream

param compact

default value is Standard_False

type compact

bool

rtype

void

PrintSurface()
Parameters

S

type S

Geom_Surface

param OS

type OS

Standard_OStream

param compact

default value is Standard_False

type compact

bool

rtype

void

ReadCurve()
Parameters

ctype

type ctype

int

param IS

type IS

Standard_IStream

param C

type C

Geom_Curve

rtype

Standard_IStream

ReadCurve2d()
Parameters

ctype

type ctype

int

param IS

type IS

Standard_IStream

param C

type C

Geom2d_Curve

rtype

Standard_IStream

ReadSurface()
Parameters

ctype

type ctype

int

param IS

type IS

Standard_IStream

param S

type S

Geom_Surface

rtype

Standard_IStream

property thisown

The membership flag

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class geomtools

Bases: object

static Dump()
  • A set of Curves from Geom2d. Dumps the surface on the stream.
    param S

    type S

    Geom_Surface

    param OS

    type OS

    Standard_OStream

    rtype

    void* Dumps the Curve on the stream.

    param C

    type C

    Geom_Curve

    param OS

    type OS

    Standard_OStream

    rtype

    void* Dumps the Curve on the stream.

    param C

    type C

    Geom2d_Curve

    param OS

    type OS

    Standard_OStream

    rtype

    void

static GetReal()
  • Reads the Standard_Real value from the stream. Zero is read in case of error
    param IS

    type IS

    Standard_IStream

    param theValue

    type theValue

    float

    rtype

    void

static GetUndefinedTypeHandler()
Return type

opencascade::handle<GeomTools_UndefinedTypeHandler>

static Read()
  • Reads the surface from the stream.
    param S

    type S

    Geom_Surface

    param IS

    type IS

    Standard_IStream

    rtype

    void* Reads the Curve from the stream.

    param C

    type C

    Geom_Curve

    param IS

    type IS

    Standard_IStream

    rtype

    void* Reads the Curve from the stream.

    param C

    type C

    Geom2d_Curve

    param IS

    type IS

    Standard_IStream

    rtype

    void

static SetUndefinedTypeHandler()
Parameters

aHandler

type aHandler

GeomTools_UndefinedTypeHandler

rtype

void

static Write()
  • Writes the surface on the stream.
    param S

    type S

    Geom_Surface

    param OS

    type OS

    Standard_OStream

    rtype

    void* Writes the Curve on the stream.

    param C

    type C

    Geom_Curve

    param OS

    type OS

    Standard_OStream

    rtype

    void* Writes the Curve on the stream.

    param C

    type C

    Geom2d_Curve

    param OS

    type OS

    Standard_OStream

    rtype

    void

property thisown

The membership flag