OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    IntTools_Curve Class Reference

    The class is a container of one 3D curve, two 2D curves and two Tolerance values. It is used in the Face/Face intersection algorithm to store the results of intersection. In this context: the 3D curve is the intersection curve; the 2D curves are the PCurves of the 3D curve on the intersecting faces; the tolerance is the valid tolerance for 3D curve computed as maximal deviation between 3D curve and 2D curves (or surfaces in case there are no 2D curves); the tangential tolerance is the maximal distance from 3D curve to the end of the tangential zone between faces in terms of their tolerance values. More...

    #include <IntTools_Curve.hxx>

    Public Member Functions

     IntTools_Curve ()
     Empty constructor.
     IntTools_Curve (const occ::handle< Geom_Curve > &the3dCurve3d, const occ::handle< Geom2d_Curve > &the2dCurve1, const occ::handle< Geom2d_Curve > &the2dCurve2, const double theTolerance=0.0, const double theTangentialTolerance=0.0)
     Constructor taking 3d curve, two 2d curves and two tolerance values.
    void SetCurves (const occ::handle< Geom_Curve > &the3dCurve, const occ::handle< Geom2d_Curve > &the2dCurve1, const occ::handle< Geom2d_Curve > &the2dCurve2)
     Sets the curves.
    void SetCurve (const occ::handle< Geom_Curve > &the3dCurve)
     Sets the 3d curve.
    void SetFirstCurve2d (const occ::handle< Geom2d_Curve > &the2dCurve1)
     Sets the first 2d curve.
    void SetSecondCurve2d (const occ::handle< Geom2d_Curve > &the2dCurve2)
     Sets the second 2d curve.
    void SetTolerance (const double theTolerance)
     Sets the tolerance for the curve.
    void SetTangentialTolerance (const double theTangentialTolerance)
     Sets the tangential tolerance.
    const occ::handle< Geom_Curve > & Curve () const
     Returns 3d curve.
    const occ::handle< Geom2d_Curve > & FirstCurve2d () const
     Returns first 2d curve.
    const occ::handle< Geom2d_Curve > & SecondCurve2d () const
     Returns second 2d curve.
    double Tolerance () const
     Returns the tolerance.
    double TangentialTolerance () const
     Returns the tangential tolerance.
    bool HasBounds () const
     Returns TRUE if 3d curve is BoundedCurve.
    bool Bounds (double &theFirst, double &theLast, gp_Pnt &theFirstPnt, gp_Pnt &theLastPnt) const
     If the 3d curve is bounded curve the method will return TRUE and modify the output parameters with boundary parameters of the curve and corresponded 3d points. If the curve does not have bounds, the method will return false and the output parameters will stay untouched.
    bool D0 (const double &thePar, gp_Pnt &thePnt) const
     Computes 3d point corresponded to the given parameter if this parameter is inside the boundaries of the curve. Returns TRUE in this case. Otherwise, the point will not be computed and the method will return FALSE.
    GeomAbs_CurveType Type () const
     Returns the type of the 3d curve.

    Detailed Description

    The class is a container of one 3D curve, two 2D curves and two Tolerance values. It is used in the Face/Face intersection algorithm to store the results of intersection. In this context: the 3D curve is the intersection curve; the 2D curves are the PCurves of the 3D curve on the intersecting faces; the tolerance is the valid tolerance for 3D curve computed as maximal deviation between 3D curve and 2D curves (or surfaces in case there are no 2D curves); the tangential tolerance is the maximal distance from 3D curve to the end of the tangential zone between faces in terms of their tolerance values.

    Constructor & Destructor Documentation

    ◆ IntTools_Curve() [1/2]

    IntTools_Curve::IntTools_Curve ( )

    Empty constructor.

    ◆ IntTools_Curve() [2/2]

    IntTools_Curve::IntTools_Curve ( const occ::handle< Geom_Curve > & the3dCurve3d,
    const occ::handle< Geom2d_Curve > & the2dCurve1,
    const occ::handle< Geom2d_Curve > & the2dCurve2,
    const double theTolerance = 0.0,
    const double theTangentialTolerance = 0.0 )

    Constructor taking 3d curve, two 2d curves and two tolerance values.

    Member Function Documentation

    ◆ Bounds()

    bool IntTools_Curve::Bounds ( double & theFirst,
    double & theLast,
    gp_Pnt & theFirstPnt,
    gp_Pnt & theLastPnt ) const

    If the 3d curve is bounded curve the method will return TRUE and modify the output parameters with boundary parameters of the curve and corresponded 3d points. If the curve does not have bounds, the method will return false and the output parameters will stay untouched.

    ◆ Curve()

    const occ::handle< Geom_Curve > & IntTools_Curve::Curve ( ) const
    inline

    Returns 3d curve.

    ◆ D0()

    bool IntTools_Curve::D0 ( const double & thePar,
    gp_Pnt & thePnt ) const

    Computes 3d point corresponded to the given parameter if this parameter is inside the boundaries of the curve. Returns TRUE in this case. Otherwise, the point will not be computed and the method will return FALSE.

    ◆ FirstCurve2d()

    const occ::handle< Geom2d_Curve > & IntTools_Curve::FirstCurve2d ( ) const
    inline

    Returns first 2d curve.

    ◆ HasBounds()

    bool IntTools_Curve::HasBounds ( ) const

    Returns TRUE if 3d curve is BoundedCurve.

    ◆ SecondCurve2d()

    const occ::handle< Geom2d_Curve > & IntTools_Curve::SecondCurve2d ( ) const
    inline

    Returns second 2d curve.

    ◆ SetCurve()

    void IntTools_Curve::SetCurve ( const occ::handle< Geom_Curve > & the3dCurve)
    inline

    Sets the 3d curve.

    ◆ SetCurves()

    void IntTools_Curve::SetCurves ( const occ::handle< Geom_Curve > & the3dCurve,
    const occ::handle< Geom2d_Curve > & the2dCurve1,
    const occ::handle< Geom2d_Curve > & the2dCurve2 )
    inline

    Sets the curves.

    ◆ SetFirstCurve2d()

    void IntTools_Curve::SetFirstCurve2d ( const occ::handle< Geom2d_Curve > & the2dCurve1)
    inline

    Sets the first 2d curve.

    ◆ SetSecondCurve2d()

    void IntTools_Curve::SetSecondCurve2d ( const occ::handle< Geom2d_Curve > & the2dCurve2)
    inline

    Sets the second 2d curve.

    ◆ SetTangentialTolerance()

    void IntTools_Curve::SetTangentialTolerance ( const double theTangentialTolerance)
    inline

    Sets the tangential tolerance.

    ◆ SetTolerance()

    void IntTools_Curve::SetTolerance ( const double theTolerance)
    inline

    Sets the tolerance for the curve.

    ◆ TangentialTolerance()

    double IntTools_Curve::TangentialTolerance ( ) const
    inline

    Returns the tangential tolerance.

    ◆ Tolerance()

    double IntTools_Curve::Tolerance ( ) const
    inline

    Returns the tolerance.

    ◆ Type()

    GeomAbs_CurveType IntTools_Curve::Type ( ) const

    Returns the type of the 3d curve.


    The documentation for this class was generated from the following file: