OCC.GeomAdaptor module

this package contains the geometric definition ofcurve and surface necessary to use algorithmes.

class GeomAdaptor_Curve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

Return type:None
Parameters:C (Handle_Geom_Curve &) –
Return type:None
  • ConstructionError is raised if Ufirst>Ulast
Parameters:
  • C (Handle_Geom_Curve &) –
  • UFirst (float) –
  • ULast (float) –
Return type:

None

Curve()
  • Provides a curve inherited from Hcurve from Adaptor. This is inherited to provide easy to use constructors.
Return type:Handle_Geom_Curve
Load()
Parameters:C (Handle_Geom_Curve &) –
Return type:None
  • ConstructionError is raised if Ufirst>Ulast
Parameters:
  • C (Handle_Geom_Curve &) –
  • UFirst (float) –
  • ULast (float) –
Return type:

None

thisown

The membership flag

class GeomAdaptor_GHCurve(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HCurve

Return type:None
Parameters:C (GeomAdaptor_Curve &) –
Return type:None
ChangeCurve()
Return type:GeomAdaptor_Curve
GetHandle()
Set()
Parameters:C (GeomAdaptor_Curve &) –
Return type:None
thisown

The membership flag

class GeomAdaptor_GHSurface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_HSurface

Return type:None
Parameters:S (GeomAdaptor_Surface &) –
Return type:None
ChangeSurface()
Return type:GeomAdaptor_Surface
GetHandle()
Set()
Parameters:S (GeomAdaptor_Surface &) –
Return type:None
thisown

The membership flag

class GeomAdaptor_HCurve(*args)

Bases: OCC.GeomAdaptor.GeomAdaptor_GHCurve

Return type:

None

Parameters:
  • AS (GeomAdaptor_Curve &) –
  • S (Handle_Geom_Curve &) –
Return type:

None

Return type:

None

  • ConstructionError is raised if UFirst>ULast or VFirst>VLast
Parameters:
  • S (Handle_Geom_Curve &) –
  • UFirst (float) –
  • ULast (float) –
Return type:

None

GetHandle()
thisown

The membership flag

class GeomAdaptor_HSurface(*args)

Bases: OCC.GeomAdaptor.GeomAdaptor_GHSurface

Return type:

None

Parameters:
  • AS (GeomAdaptor_Surface &) –
  • S (Handle_Geom_Surface &) –
Return type:

None

Return type:

None

  • ConstructionError is raised if UFirst>ULast or VFirst>VLast
Parameters:
  • S (Handle_Geom_Surface &) –
  • UFirst (float) –
  • ULast (float) –
  • VFirst (float) –
  • VLast (float) –
  • TolU (float) – default value is 0.0
  • TolV (float) – default value is 0.0
Return type:

None

GetHandle()
thisown

The membership flag

class GeomAdaptor_Surface(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Surface

Return type:None
Parameters:S (Handle_Geom_Surface &) –
Return type:None
  • ConstructionError is raised if UFirst>ULast or VFirst>VLast
Parameters:
  • S (Handle_Geom_Surface &) –
  • UFirst (float) –
  • ULast (float) –
  • VFirst (float) –
  • VLast (float) –
  • TolU (float) – default value is 0.0
  • TolV (float) – default value is 0.0
Return type:

None

Load()
Parameters:S (Handle_Geom_Surface &) –
Return type:None
  • ConstructionError is raised if UFirst>ULast or VFirst>VLast
Parameters:
  • S (Handle_Geom_Surface &) –
  • UFirst (float) –
  • ULast (float) –
  • VFirst (float) –
  • VLast (float) –
  • TolU (float) – default value is 0.0
  • TolV (float) – default value is 0.0
Return type:

None

Surface()
Return type:Handle_Geom_Surface
thisown

The membership flag

class Handle_GeomAdaptor_GHCurve(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HCurve

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

The membership flag

class Handle_GeomAdaptor_GHSurface(*args)

Bases: OCC.Adaptor3d.Handle_Adaptor3d_HSurface

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

The membership flag

class Handle_GeomAdaptor_HCurve(*args)

Bases: OCC.GeomAdaptor.Handle_GeomAdaptor_GHCurve

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

The membership flag

class Handle_GeomAdaptor_HSurface(*args)

Bases: OCC.GeomAdaptor.Handle_GeomAdaptor_GHSurface

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 geomadaptor

Bases: object

static MakeCurve()
  • Inherited from GHCurve. Provides a curve handled by reference. Build a Geom_Curve using the informations from the Curve from Adaptor3d
Parameters:C (Adaptor3d_Curve &) –
Return type:Handle_Geom_Curve
static MakeSurface()
  • Build a Geom_Surface using the informations from the Surface from Adaptor3d @param theS - Surface adaptor to convert. @param theTrimFlag - True if perform trim surface values by adaptor and false otherwise.
Parameters:
  • S (Adaptor3d_Surface &) –
  • theTrimFlag (bool) – default value is Standard_True
Return type:

Handle_Geom_Surface

thisown

The membership flag

geomadaptor_MakeCurve()
  • Inherited from GHCurve. Provides a curve handled by reference. Build a Geom_Curve using the informations from the Curve from Adaptor3d
Parameters:C (Adaptor3d_Curve &) –
Return type:Handle_Geom_Curve
geomadaptor_MakeSurface()
  • Build a Geom_Surface using the informations from the Surface from Adaptor3d @param theS - Surface adaptor to convert. @param theTrimFlag - True if perform trim surface values by adaptor and false otherwise.
Parameters:
  • S (Adaptor3d_Surface &) –
  • theTrimFlag (bool) – default value is Standard_True
Return type:

Handle_Geom_Surface

new_instancemethod(func, inst, cls)
register_handle(handle, base_object)

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