Open CASCADE Technology  7.6.0
Public Member Functions

BRepLib_ValidateEdge Class Reference

Computes the max distance between 3D-curve and curve on surface in fixed points number. More...

#include <BRepLib_ValidateEdge.hxx>

Public Member Functions

 BRepLib_ValidateEdge (const Handle< Adaptor3d_Curve > theReferenceCurve, const Handle< Adaptor3d_CurveOnSurface > theOtherCurve, Standard_Boolean theSameParameter)
 Initialization constructor. More...
 
void SetControlPointsNumber (Standard_Integer theControlPointsNumber)
 Set control points number (if you need a value other than 22) More...
 
void SetExitIfToleranceExceeded (Standard_Real theToleranceForChecking)
 Sets the maximal allowed distance in the Process() function. If the distance greater than theToleranceForChecking the Process() function stops. Use this for best performance in case of checking of tolerance. More...
 
void Process ()
 Computes the max distance for the 3d curve <myReferenceCurve> and curve on surface <myOtherCurve>. If the SetExitIfToleranceExceeded() function was called before <myCalculatedDistance> contains first greater than SetExitIfToleranceExceeded() parameter value. More...
 
Standard_Boolean IsDone ()
 Returns true if the distance has been found for all points. More...
 
Standard_Boolean CheckTolerance (Standard_Real theToleranceToCheck)
 Returns true if computed distance is less than <theToleranceToCheck> More...
 
Standard_Real GetMaxDistance ()
 Returns max distance. More...
 
void UpdateTolerance (Standard_Real &theToleranceToUpdate)
 Increase <theToleranceToUpdate> if max distance is greater than <theToleranceToUpdate> More...
 

Detailed Description

Computes the max distance between 3D-curve and curve on surface in fixed points number.

Constructor & Destructor Documentation

◆ BRepLib_ValidateEdge()

BRepLib_ValidateEdge::BRepLib_ValidateEdge ( const Handle< Adaptor3d_Curve theReferenceCurve,
const Handle< Adaptor3d_CurveOnSurface theOtherCurve,
Standard_Boolean  theSameParameter 
)

Initialization constructor.

Member Function Documentation

◆ CheckTolerance()

Standard_Boolean BRepLib_ValidateEdge::CheckTolerance ( Standard_Real  theToleranceToCheck)

Returns true if computed distance is less than <theToleranceToCheck>

◆ GetMaxDistance()

Standard_Real BRepLib_ValidateEdge::GetMaxDistance ( )

Returns max distance.

◆ IsDone()

Standard_Boolean BRepLib_ValidateEdge::IsDone ( )
inline

Returns true if the distance has been found for all points.

◆ Process()

void BRepLib_ValidateEdge::Process ( )

Computes the max distance for the 3d curve <myReferenceCurve> and curve on surface <myOtherCurve>. If the SetExitIfToleranceExceeded() function was called before <myCalculatedDistance> contains first greater than SetExitIfToleranceExceeded() parameter value.

◆ SetControlPointsNumber()

void BRepLib_ValidateEdge::SetControlPointsNumber ( Standard_Integer  theControlPointsNumber)
inline

Set control points number (if you need a value other than 22)

◆ SetExitIfToleranceExceeded()

void BRepLib_ValidateEdge::SetExitIfToleranceExceeded ( Standard_Real  theToleranceForChecking)

Sets the maximal allowed distance in the Process() function. If the distance greater than theToleranceForChecking the Process() function stops. Use this for best performance in case of checking of tolerance.

◆ UpdateTolerance()

void BRepLib_ValidateEdge::UpdateTolerance ( Standard_Real theToleranceToUpdate)

Increase <theToleranceToUpdate> if max distance is greater than <theToleranceToUpdate>


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