Open CASCADE Technology 7.8.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.
 
 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 == Standard_True then computation will be performed in parallel.
 
Standard_Boolean IsDone () const
 Returns true if the max distance has been found.
 
void SetParallel (const Standard_Boolean theIsParallel)
 Sets parallel flag.
 
Standard_Boolean IsParallel ()
 Returns true if parallel flag is set.
 
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.
 
Standard_Real MaxDistance () const
 Returns max distance.
 
Standard_Real MaxParameter () const
 Returns parameter in which the distance is maximal.
 

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.
 

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: