Open CASCADE Technology  7.7.0
Public Member Functions | Protected Member Functions

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. More...
 
 BRepLib_CheckCurveOnSurface (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
 Constructor. More...
 
void Init (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
 Sets the data for the algorithm. More...
 
void Perform ()
 Performs the calculation If myIsParallel == Standard_True then computation will be performed in parallel. More...
 
Standard_Boolean IsDone () const
 Returns true if the max distance has been found. More...
 
void SetParallel (const Standard_Boolean theIsParallel)
 Sets parallel flag. More...
 
Standard_Boolean IsParallel ()
 Returns true if parallel flag is set. More...
 
Standard_Integer 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. More...
 
Standard_Real MaxDistance () const
 Returns max distance. More...
 
Standard_Real MaxParameter () const
 Returns parameter in which the distance is maximal. More...
 

Protected Member Functions

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

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 Handle< Adaptor3d_CurveOnSurface > &  theCurveOnSurface)
protected

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

◆ ErrorStatus()

Standard_Integer 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()

Standard_Boolean BRepLib_CheckCurveOnSurface::IsDone ( ) const
inline

Returns true if the max distance has been found.

◆ IsParallel()

Standard_Boolean BRepLib_CheckCurveOnSurface::IsParallel ( )
inline

Returns true if parallel flag is set.

◆ MaxDistance()

Standard_Real BRepLib_CheckCurveOnSurface::MaxDistance ( ) const
inline

Returns max distance.

◆ MaxParameter()

Standard_Real BRepLib_CheckCurveOnSurface::MaxParameter ( ) const
inline

Returns parameter in which the distance is maximal.

◆ Perform()

void BRepLib_CheckCurveOnSurface::Perform ( )

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

◆ SetParallel()

void BRepLib_CheckCurveOnSurface::SetParallel ( const Standard_Boolean  theIsParallel)
inline

Sets parallel flag.


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