OCC.GeomProjLib module

Projection of a curve on a surface.

class SwigPyIterator(*args, **kwargs)

Bases: object

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

The membership flag

value()
class geomprojlib

Bases: object

static Curve2d()
  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
  • UFirst (float) –
  • ULast (float) –
  • VFirst (float) –
  • VLast (float) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
  • UDeb (float) –
  • UFin (float) –
  • VDeb (float) –
  • VFin (float) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
  • UDeb (float) –
  • UFin (float) –
  • VDeb (float) –
  • VFin (float) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

static Project()
  • Constructs the 3d-curve from the normal projection of the Curve <C> on the surface <S>. WARNING : if the projection has failes returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom_Curve

static ProjectOnPlane()
  • Constructs the 3d-curves from the projection of the curve <Curve> on the plane <Plane> along the direction <Dir>. 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:
  • Curve (Handle_Geom_Curve &) –
  • Plane (Handle_Geom_Plane &) –
  • Dir (gp_Dir) –
  • KeepParametrization (bool) –
Return type:

Handle_Geom_Curve

thisown

The membership flag

geomprojlib_Curve2d()
  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
  • UFirst (float) –
  • ULast (float) –
  • VFirst (float) –
  • VLast (float) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] <Tolerance> is used as input if the projection needs an approximation. In this case, the reached tolerance is set in <Tolerance> as output. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ) The 3dCurve is taken between the parametrization range [First, Last] If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • First (float) –
  • Last (float) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
  • UDeb (float) –
  • UFin (float) –
  • VDeb (float) –
  • VFin (float) –
Return type:

Handle_Geom2d_Curve

  • gives the 2d-curve of a 3d-curve lying on a surface ( uses GeomProjLib_ProjectedCurve ). If the projection needs an approximation, Precision::PApproximation() is used. WARNING : if the projection has failed, this method returns a null Handle. can expand a little the bounds of surface
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
  • UDeb (float) –
  • UFin (float) –
  • VDeb (float) –
  • VFin (float) –
  • Tolerance (float &) –
Return type:

Handle_Geom2d_Curve

geomprojlib_Project()
  • Constructs the 3d-curve from the normal projection of the Curve <C> on the surface <S>. WARNING : if the projection has failes returns a null Handle.
Parameters:
  • C (Handle_Geom_Curve &) –
  • S (Handle_Geom_Surface &) –
Return type:

Handle_Geom_Curve

geomprojlib_ProjectOnPlane()
  • Constructs the 3d-curves from the projection of the curve <Curve> on the plane <Plane> along the direction <Dir>. 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:
  • Curve (Handle_Geom_Curve &) –
  • Plane (Handle_Geom_Plane &) –
  • Dir (gp_Dir) –
  • KeepParametrization (bool) –
Return type:

Handle_Geom_Curve

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

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