OpenCascade.js
API ReferenceModelingDataTKGeomBase

GeomProjLib

OCCT package GeomProjLib: GeomProjLib.

GeomProjLib

Projection of a curve on a surface.

Constructors(1)

Static methods(8)

  • Curve2d(C: Geom_Curve, First: number, Last: number, S: Geom_Surface, UFirst: number, ULast: number, VFirst: number, VLast: number, Tolerance: number): { returnValue: Geom2d_Curve; Tolerance: number; [Symbol.dispose](): void }

    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 (9)
    • C
    • First
    • Last
    • S
    • UFirst
    • ULast
    • VFirst
    • VLast
    • Tolerance
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • Tolerance: updated value from the call.
      Dispose the returned envelope to release owned Handle fields.
  • Curve2d(C: Geom_Curve, First: number, Last: number, S: Geom_Surface, Tolerance: number): { returnValue: Geom2d_Curve; Tolerance: number; [Symbol.dispose](): void }

    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 (5)
    • C
    • First
    • Last
    • S
    • Tolerance
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • Tolerance: updated value from the call.
      Dispose the returned envelope to release owned Handle fields.
  • Curve2d(C: Geom_Curve, First: number, Last: number, S: Geom_Surface): 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 (4)
    • C
    • First
    • Last
    • S
  • 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 (2)
    • C
    • S
  • Curve2d(C: Geom_Curve, S: Geom_Surface, UDeb: number, UFin: number, VDeb: number, VFin: number): 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 (6)
    • C
    • S
    • UDeb
    • UFin
    • VDeb
    • VFin
  • Curve2d(C: Geom_Curve, S: Geom_Surface, UDeb: number, UFin: number, VDeb: number, VFin: number, Tolerance: number): { returnValue: Geom2d_Curve; Tolerance: number; [Symbol.dispose](): void }

    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 (7)
    • C
    • S
    • UDeb
    • UFin
    • VDeb
    • VFin
    • Tolerance
    Returns

    A result object with fields:

    • returnValue: the C++ return value
    • Tolerance: updated value from the call.
      Dispose the returned envelope to release owned Handle fields.
  • Constructs the 3d-curve from the normal projection of the Curve on the surface . WARNING: if the projection has failed, returns a null Handle.

    Parameters (2)
    • C
    • S
  • ProjectOnPlane(Curve: Geom_Curve, Plane: Geom_Plane, Dir: gp_Dir, KeepParametrization: boolean): Geom_Curve

    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 . It means: proj(C(u)) = PC(u) for each u. Otherwise, the parametrization may change.

    Parameters (4)
    • Curve
    • Plane
    • Dir
    • KeepParametrization