OCC.ProjLib module

class OCC.ProjLib.Handle_ProjLib_HCompProjectedCurve(*args)

Bases: OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d

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

The membership flag

class OCC.ProjLib.Handle_ProjLib_HProjectedCurve(*args)

Bases: OCC.Adaptor2d.Handle_Adaptor2d_HCurve2d

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

The membership flag

class OCC.ProjLib.Handle_ProjLib_HSequenceOfHSequenceOfPnt(*args)

Bases: OCC.MMgt.Handle_MMgt_TShared

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

The membership flag

class OCC.ProjLib.Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(*args)

Bases: OCC.TCollection.Handle_TCollection_SeqNode

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

The membership flag

class OCC.ProjLib.ProjLib_CompProjectedCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_Curve2d

Bounds()
  • returns the bounds of the continuous part corresponding to Index
Parameters:
  • Index (Standard_Integer) –
  • Udeb (float &) –
  • Ufin (float &) –
Return type:

None

GetCurve()
Return type:Handle_Adaptor3d_HCurve
GetSequence()
Return type:Handle_ProjLib_HSequenceOfHSequenceOfPnt
GetSurface()
Return type:Handle_Adaptor3d_HSurface
GetTolerance()
Parameters:
  • TolU (float &) –
  • TolV (float &) –
Return type:

None

Init()
  • computes a set of projected point and determine the continuous parts of the projected curves. The points corresponding to a projection on the bounds of the surface are included in this set of points.
Return type:None
IsSinglePnt()
  • returns True if part of projection with number Index is a single point and writes its coordinats in P
Parameters:
  • Index (Standard_Integer) –
  • P (gp_Pnt2d) –
Return type:

bool

IsUIso()
  • returns True if part of projection with number Index is an u-isoparametric curve of input surface
Parameters:
  • Index (Standard_Integer) –
  • U (float &) –
Return type:

bool

IsVIso()
  • returns True if part of projection with number Index is an v-isoparametric curve of input surface
Parameters:
  • Index (Standard_Integer) –
  • V (float &) –
Return type:

bool

Load()
  • Changes the surface.
Parameters:S (Handle_Adaptor3d_HSurface &) –
Return type:None
  • Changes the curve.
Parameters:C (Handle_Adaptor3d_HCurve &) –
Return type:None
MaxDistance()
  • returns the maximum distance between curve to project and surface
Parameters:Index (Standard_Integer) –
Return type:float
NbCurves()
  • returns the number of continuous part of the projected curve
Return type:int
thisown

The membership flag

class OCC.ProjLib.ProjLib_ComputeApprox(*args)

Bases: object

BSpline()
Return type:Handle_Geom2d_BSplineCurve
Bezier()
Return type:Handle_Geom2d_BezierCurve
Tolerance()
  • returns the reached Tolerance.
Return type:float
thisown

The membership flag

class OCC.ProjLib.ProjLib_ComputeApproxOnPolarSurface(*args)

Bases: object

BSpline()
Return type:Handle_Geom2d_BSplineCurve
BuildInitialCurve2d()
Parameters:
  • Curve (Handle_Adaptor3d_HCurve &) –
  • S (Handle_Adaptor3d_HSurface &) –
Return type:

Handle_Adaptor2d_HCurve2d

Curve2d()
Return type:Handle_Geom2d_Curve
IsDone()
Return type:bool
Perform()
Parameters:
  • InitCurve2d (Handle_Adaptor2d_HCurve2d &) –
  • C (Handle_Adaptor3d_HCurve &) –
  • S (Handle_Adaptor3d_HSurface &) –
Return type:

Handle_Geom2d_BSplineCurve

ProjectUsingInitialCurve2d()
Parameters:
  • Curve (Handle_Adaptor3d_HCurve &) –
  • S (Handle_Adaptor3d_HSurface &) –
  • InitCurve2d (Handle_Adaptor2d_HCurve2d &) –
Return type:

Handle_Geom2d_BSplineCurve

thisown

The membership flag

class OCC.ProjLib.ProjLib_Cone(*args)

Bases: OCC.ProjLib.ProjLib_Projector

Init()
Parameters:Co (gp_Cone) –
Return type:None
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

thisown

The membership flag

class OCC.ProjLib.ProjLib_Cylinder(*args)

Bases: OCC.ProjLib.ProjLib_Projector

Init()
Parameters:Cyl (gp_Cylinder) –
Return type:None
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

thisown

The membership flag

class OCC.ProjLib.ProjLib_HCompProjectedCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_HCurve2d

ChangeCurve2d()
Return type:ProjLib_CompProjectedCurve
GetHandle()

ProjLib_HCompProjectedCurve_GetHandle(ProjLib_HCompProjectedCurve self) -> Handle_ProjLib_HCompProjectedCurve

Set()
Parameters:C (ProjLib_CompProjectedCurve &) –
Return type:None
thisown

The membership flag

class OCC.ProjLib.ProjLib_HProjectedCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_HCurve2d

ChangeCurve2d()
Return type:ProjLib_ProjectedCurve
GetHandle()

ProjLib_HProjectedCurve_GetHandle(ProjLib_HProjectedCurve self) -> Handle_ProjLib_HProjectedCurve

Set()
Parameters:C (ProjLib_ProjectedCurve &) –
Return type:None
thisown

The membership flag

class OCC.ProjLib.ProjLib_HSequenceOfHSequenceOfPnt

Bases: OCC.MMgt.MMgt_TShared

Append()
Parameters:
  • anItem (Handle_TColgp_HSequenceOfPnt) –
  • aSequence (Handle_ProjLib_HSequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

ChangeSequence()
Return type:ProjLib_SequenceOfHSequenceOfPnt
ChangeValue()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_TColgp_HSequenceOfPnt
Clear()
Return type:None
Exchange()
Parameters:
  • anIndex (Standard_Integer) –
  • anOtherIndex (Standard_Integer) –
Return type:

None

GetHandle()

ProjLib_HSequenceOfHSequenceOfPnt_GetHandle(ProjLib_HSequenceOfHSequenceOfPnt self) -> Handle_ProjLib_HSequenceOfHSequenceOfPnt

InsertAfter()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_TColgp_HSequenceOfPnt) –
  • anIndex
  • aSequence (Handle_ProjLib_HSequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_TColgp_HSequenceOfPnt) –
  • anIndex
  • aSequence (Handle_ProjLib_HSequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

IsEmpty()
Return type:bool
Length()
Return type:int
Prepend()
Parameters:
  • anItem (Handle_TColgp_HSequenceOfPnt) –
  • aSequence (Handle_ProjLib_HSequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • anIndex (Standard_Integer) –
  • fromIndex (Standard_Integer) –
  • toIndex (Standard_Integer) –
Return type:

None

Return type:

None

Reverse()
Return type:None
Sequence()
Return type:ProjLib_SequenceOfHSequenceOfPnt
SetValue()
Parameters:
  • anIndex (Standard_Integer) –
  • anItem (Handle_TColgp_HSequenceOfPnt) –
Return type:

None

ShallowCopy()
Return type:Handle_ProjLib_HSequenceOfHSequenceOfPnt
Split()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_ProjLib_HSequenceOfHSequenceOfPnt
Value()
Parameters:anIndex (Standard_Integer) –
Return type:Handle_TColgp_HSequenceOfPnt
thisown

The membership flag

class OCC.ProjLib.ProjLib_Plane(*args)

Bases: OCC.ProjLib.ProjLib_Projector

Init()
Parameters:Pl (gp_Pln) –
Return type:None
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

thisown

The membership flag

class OCC.ProjLib.ProjLib_PrjFunc(*args)

Bases: object

Derivatives()
  • returns the values <D> of the derivatives for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

NbEquations()
  • returns the number of equations of the function.
Return type:int
NbVariables()
  • returns the number of variables of the function.
Return type:int
Solution()
  • returns point on surface
Return type:gp_Pnt2d
Value()
  • computes the values <F> of the Functions for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
Return type:

bool

Values()
  • returns the values <F> of the functions and the derivatives <D> for the variable <X>. Returns True if the computation was done successfully, False otherwise.
Parameters:
  • X (math_Vector &) –
  • F (math_Vector &) –
  • D (math_Matrix &) –
Return type:

bool

thisown

The membership flag

class OCC.ProjLib.ProjLib_PrjResolve(*args)

Bases: object

IsDone()
  • Returns True if the distance is found.
Return type:bool
Perform()
  • Calculates the ort from C(t) to S with a close point. The close point is defined by the parameter values U0 and V0. The function F(u,v)=distance(S(u,v),C(t)) has an extremum when gradient(F)=0. The algorithm searchs a zero near the close point.
Parameters:
  • t (float) –
  • U (float) –
  • V (float) –
  • Tol (gp_Pnt2d) –
  • Inf (gp_Pnt2d) –
  • Sup (gp_Pnt2d) –
  • FTol (float) – default value is - 1
  • StrictInside (bool) – default value is Standard_False
Return type:

None

  • Calculates the ort from C(t) to S with a close point. The close point is defined by the parameter values U0 and V0. The function F(u,v)=distance(S(u,v),C(t)) has an extremum when gradient(F)=0. The algorithm searchs a zero near the close point.
Parameters:
  • t (float) –
  • U (float) –
  • V (float) –
  • Tol (gp_Pnt2d) –
  • Inf (gp_Pnt2d) –
  • Sup (gp_Pnt2d) –
  • FTol (float) – default value is - 1
  • StrictInside (bool) – default value is Standard_False
Return type:

None

  • Calculates the ort from C(t) to S with a close point. The close point is defined by the parameter values U0 and V0. The function F(u,v)=distance(S(u,v),C(t)) has an extremum when gradient(F)=0. The algorithm searchs a zero near the close point.
Parameters:
  • t (float) –
  • U (float) –
  • V (float) –
  • Tol (gp_Pnt2d) –
  • Inf (gp_Pnt2d) –
  • Sup (gp_Pnt2d) –
  • FTol (float) – default value is - 1
  • StrictInside (bool) – default value is Standard_False
Return type:

None

Solution()
  • Returns the point of the extremum distance.
Return type:gp_Pnt2d
thisown

The membership flag

class OCC.ProjLib.ProjLib_ProjectOnPlane(*args)

Bases: OCC.Adaptor3d.Adaptor3d_Curve

GetCurve()
Return type:Handle_Adaptor3d_HCurve
GetDirection()
Return type:gp_Dir
GetPlane()
Return type:gp_Ax3
Load()
  • Sets the Curve and perform the projection. if <KeepParametrization> is true, the parametrization of the Projected Curve <PC> will be the same as the parametrization of the initial curve <C>. It meens: proj(C(u)) = PC(u) for each u. Otherwize, the parametrization may change.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • Tolerance (float) –
  • KeepParametrization (bool) – default value is Standard_True
Return type:

None

  • Sets the Curve and perform the projection. if <KeepParametrization> is true, the parametrization of the Projected Curve <PC> will be the same as the parametrization of the initial curve <C>. It meens: proj(C(u)) = PC(u) for each u. Otherwize, the parametrization may change.
Parameters:
  • C (Handle_Adaptor3d_HCurve &) –
  • Tolerance (float) –
  • KeepParametrization (bool) – default value is Standard_True
Return type:

None

thisown

The membership flag

class OCC.ProjLib.ProjLib_ProjectOnSurface(*args)

Bases: object

BSpline()
Return type:Handle_Geom_BSplineCurve
Delete()
Return type:void
IsDone()
Return type:bool
thisown

The membership flag

class OCC.ProjLib.ProjLib_ProjectedCurve(*args)

Bases: OCC.Adaptor2d.Adaptor2d_Curve2d

GetCurve()
Return type:Handle_Adaptor3d_HCurve
GetSurface()
Return type:Handle_Adaptor3d_HSurface
GetTolerance()
  • returns the tolerance reached if an approximation is Done.
Return type:float
thisown

The membership flag

class OCC.ProjLib.ProjLib_Projector

Bases: object

BSpline()
Return type:Handle_Geom2d_BSplineCurve
Bezier()
Return type:Handle_Geom2d_BezierCurve
Circle()
Return type:gp_Circ2d
Delete()
Return type:void
Done()
  • Set isDone = Standard_True;
Return type:None
Ellipse()
Return type:gp_Elips2d
GetType()
Return type:GeomAbs_CurveType
Hyperbola()
Return type:gp_Hypr2d
IsDone()
Return type:bool
IsPeriodic()
Return type:bool
Line()
Return type:gp_Lin2d
Parabola()
Return type:gp_Parab2d
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

SetBSpline()
Parameters:C (Handle_Geom2d_BSplineCurve &) –
Return type:None
SetBezier()
Parameters:C (Handle_Geom2d_BezierCurve &) –
Return type:None
SetPeriodic()
Return type:None
SetType()
Parameters:Type (GeomAbs_CurveType) –
Return type:None
UFrame()
  • Translates the 2d curve to set the part of the curve [CFirst, CLast] in the range [ UFirst, UFirst + Period [
Parameters:
  • CFirst (float) –
  • CLast (float) –
  • UFirst (float) –
  • Period (float) –
Return type:

None

VFrame()
  • Translates the 2d curve to set the part of the curve [CFirst, CLast] in the range [ VFirst, VFirst + Period [
Parameters:
  • CFirst (float) –
  • CLast (float) –
  • VFirst (float) –
  • Period (float) –
Return type:

None

thisown

The membership flag

class OCC.ProjLib.ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt(*args)

Bases: OCC.TCollection.TCollection_SeqNode

GetHandle()

ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt_GetHandle(ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt self) -> Handle_ProjLib_SequenceNodeOfSequenceOfHSequenceOfPnt

Value()
Return type:Handle_TColgp_HSequenceOfPnt
thisown

The membership flag

class OCC.ProjLib.ProjLib_SequenceOfHSequenceOfPnt

Bases: OCC.TCollection.TCollection_BaseSequence

Append()
Parameters:
  • T (Handle_TColgp_HSequenceOfPnt) –
  • S (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

Assign()
Parameters:Other (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:ProjLib_SequenceOfHSequenceOfPnt
ChangeValue()
Parameters:Index (Standard_Integer) –
Return type:Handle_TColgp_HSequenceOfPnt
Clear()
Return type:None
First()
Return type:Handle_TColgp_HSequenceOfPnt
InsertAfter()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_TColgp_HSequenceOfPnt) –
  • Index
  • S (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

InsertBefore()
Parameters:
  • Index (Standard_Integer) –
  • T (Handle_TColgp_HSequenceOfPnt) –
  • Index
  • S (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

Last()
Return type:Handle_TColgp_HSequenceOfPnt
Prepend()
Parameters:
  • T (Handle_TColgp_HSequenceOfPnt) –
  • S (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:

None

Return type:

None

Remove()
Parameters:
  • Index (Standard_Integer) –
  • FromIndex (Standard_Integer) –
  • ToIndex (Standard_Integer) –
Return type:

None

Return type:

None

Set()
Parameters:Other (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:ProjLib_SequenceOfHSequenceOfPnt
SetValue()
Parameters:
  • Index (Standard_Integer) –
  • I (Handle_TColgp_HSequenceOfPnt) –
Return type:

None

Split()
Parameters:
  • Index (Standard_Integer) –
  • Sub (ProjLib_SequenceOfHSequenceOfPnt &) –
Return type:

None

Value()
Parameters:Index (Standard_Integer) –
Return type:Handle_TColgp_HSequenceOfPnt
thisown

The membership flag

class OCC.ProjLib.ProjLib_Sphere(*args)

Bases: OCC.ProjLib.ProjLib_Projector

Init()
Parameters:Sp (gp_Sphere) –
Return type:None
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

SetInBounds()
  • Set the point of parameter U on C in the natural restrictions of the sphere.
Parameters:U (float) –
Return type:None
thisown

The membership flag

class OCC.ProjLib.ProjLib_Torus(*args)

Bases: OCC.ProjLib.ProjLib_Projector

Init()
Parameters:To (gp_Torus) –
Return type:None
Project()
Parameters:
  • L (gp_Lin) –
  • C (gp_Circ) –
  • E (gp_Elips) –
  • P (gp_Parab) –
  • H (gp_Hypr) –
Return type:

void

Return type:

void

Return type:

void

Return type:

void

Return type:

void

thisown

The membership flag

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

Bases: object

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

The membership flag

value()
class OCC.ProjLib.projlib(*args, **kwargs)

Bases: object

static Project(*args)
  • Projection on a torus.
Parameters:
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • Pl
  • L (gp_Lin) –
  • Pl
  • C (gp_Circ) –
  • Pl
  • E (gp_Elips) –
  • Pl
  • P
  • Pl
  • H (gp_Hypr) –
  • Cy (gp_Cylinder) –
  • P
  • Cy
  • L
  • Cy
  • Ci (gp_Circ) –
  • Co (gp_Cone) –
  • P
  • Co
  • L
  • Co
  • Ci
  • Sp (gp_Sphere) –
  • P
  • Sp
  • Ci
  • To (gp_Torus) –
  • P
  • To
  • Ci
Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Circ2d

Return type:

gp_Elips2d

Return type:

gp_Parab2d

Return type:

gp_Hypr2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

thisown

The membership flag

OCC.ProjLib.projlib_Project(*args)
  • Projection on a torus.
Parameters:
  • Pl (gp_Pln) –
  • P (gp_Pnt) –
  • Pl
  • L (gp_Lin) –
  • Pl
  • C (gp_Circ) –
  • Pl
  • E (gp_Elips) –
  • Pl
  • P
  • Pl
  • H (gp_Hypr) –
  • Cy (gp_Cylinder) –
  • P
  • Cy
  • L
  • Cy
  • Ci (gp_Circ) –
  • Co (gp_Cone) –
  • P
  • Co
  • L
  • Co
  • Ci
  • Sp (gp_Sphere) –
  • P
  • Sp
  • Ci
  • To (gp_Torus) –
  • P
  • To
  • Ci
Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Circ2d

Return type:

gp_Elips2d

Return type:

gp_Parab2d

Return type:

gp_Hypr2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d

Return type:

gp_Pnt2d

Return type:

gp_Lin2d