OCC.GeomProjLib module

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

Bases: object

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

The membership flag

value()
class OCC.GeomProjLib.geomprojlib(*args, **kwargs)

Bases: object

static Curve2d(*args)
  • 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(*args)
  • 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(*args)
  • 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

OCC.GeomProjLib.geomprojlib_Curve2d(*args)
  • 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

OCC.GeomProjLib.geomprojlib_Project(*args)
  • 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

OCC.GeomProjLib.geomprojlib_ProjectOnPlane(*args)
  • 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