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
    BRepLib_CheckCurveOnSurface Class Reference

    Computes the max distance between edge and its 2d representation on the face. This class is not intended to process non-sameparameter edges. More...

    #include <BRepLib_CheckCurveOnSurface.hxx>

    Public Member Functions

     BRepLib_CheckCurveOnSurface ()
     Default constructor.
     BRepLib_CheckCurveOnSurface (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
     Constructor.
    void Init (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
     Sets the data for the algorithm.
    void Perform ()
     Performs the calculation If myIsParallel == true then computation will be performed in parallel.
    bool IsDone () const
     Returns true if the max distance has been found.
    void SetParallel (const bool theIsParallel)
     Sets parallel flag.
    bool IsParallel ()
     Returns true if parallel flag is set.
    int ErrorStatus () const
     Returns error status The possible values are: 0 - OK; 1 - null curve or surface or 2d curve; 2 - invalid parametric range; 3 - error in calculations.
    double MaxDistance () const
     Returns max distance.
    double MaxParameter () const
     Returns parameter in which the distance is maximal.

    Protected Member Functions

    void Compute (const occ::handle< Adaptor3d_CurveOnSurface > &theCurveOnSurface)
     Computes the max distance for the 3d curve of <myCOnSurfGeom> and 2d curve <theCurveOnSurface> If isMultiThread == true then computation will be performed in parallel.

    Detailed Description

    Computes the max distance between edge and its 2d representation on the face. This class is not intended to process non-sameparameter edges.

    Constructor & Destructor Documentation

    ◆ BRepLib_CheckCurveOnSurface() [1/2]

    BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface ( )
    inline

    Default constructor.

    ◆ BRepLib_CheckCurveOnSurface() [2/2]

    BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface ( const TopoDS_Edge & theEdge,
    const TopoDS_Face & theFace )

    Constructor.

    Member Function Documentation

    ◆ Compute()

    void BRepLib_CheckCurveOnSurface::Compute ( const occ::handle< Adaptor3d_CurveOnSurface > & theCurveOnSurface)
    protected

    Computes the max distance for the 3d curve of <myCOnSurfGeom> and 2d curve <theCurveOnSurface> If isMultiThread == true then computation will be performed in parallel.

    ◆ ErrorStatus()

    int BRepLib_CheckCurveOnSurface::ErrorStatus ( ) const
    inline

    Returns error status The possible values are: 0 - OK; 1 - null curve or surface or 2d curve; 2 - invalid parametric range; 3 - error in calculations.

    ◆ Init()

    void BRepLib_CheckCurveOnSurface::Init ( const TopoDS_Edge & theEdge,
    const TopoDS_Face & theFace )

    Sets the data for the algorithm.

    ◆ IsDone()

    bool BRepLib_CheckCurveOnSurface::IsDone ( ) const
    inline

    Returns true if the max distance has been found.

    ◆ IsParallel()

    bool BRepLib_CheckCurveOnSurface::IsParallel ( )
    inline

    Returns true if parallel flag is set.

    ◆ MaxDistance()

    double BRepLib_CheckCurveOnSurface::MaxDistance ( ) const
    inline

    Returns max distance.

    ◆ MaxParameter()

    double BRepLib_CheckCurveOnSurface::MaxParameter ( ) const
    inline

    Returns parameter in which the distance is maximal.

    ◆ Perform()

    void BRepLib_CheckCurveOnSurface::Perform ( )

    Performs the calculation If myIsParallel == true then computation will be performed in parallel.

    ◆ SetParallel()

    void BRepLib_CheckCurveOnSurface::SetParallel ( const bool theIsParallel)
    inline

    Sets parallel flag.


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