Open CASCADE Technology  7.5.0
Public Member Functions | Protected Member Functions
BRepLib_CheckCurveOnSurface Class Reference

Computes the max distance between edge and its 2d representation on the face. More...

#include <BRepLib_CheckCurveOnSurface.hxx>

Public Member Functions

 BRepLib_CheckCurveOnSurface ()
 Default contructor. More...
 
 BRepLib_CheckCurveOnSurface (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
 Contructor. More...
 
void Init (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace)
 Sets the data for the algorithm. More...
 
void Perform (const Standard_Boolean isTheMultyTheradDisabled=Standard_False)
 Performs the calculation If isTheMultyTheadDisabled == TRUE then computation will be made without any parallelization. More...
 
const Handle< Geom_Curve > & Curve () const
 Returns source 3D-Curve. More...
 
const Handle< Geom2d_Curve > & PCurve () const
 Returns mine 2D-Curve. More...
 
const Handle< Geom2d_Curve > & PCurve2 () const
 Returns 2nd 2D-Curve (if it exists, e.g. for seam-edge) More...
 
const Handle< Geom_Surface > & Surface () const
 Returns source surface. More...
 
void Range (Standard_Real &theFirst, Standard_Real &theLast)
 Returns first and last parameter of the curves (2D- and 3D-curves are considered to have same range) More...
 
Standard_Boolean IsDone () const
 Returns true if the max distance has been found. 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< Geom2d_Curve > &thePCurve, const Standard_Boolean isTheMultyTheradDisabled)
 Computes the max distance for the 3d curve of <myCOnSurfGeom> and 2d curve <thePCurve> If isTheMultyTheadDisabled == TRUE then computation will be made without any parallelization. More...
 

Detailed Description

Computes the max distance between edge and its 2d representation on the face.

Constructor & Destructor Documentation

◆ BRepLib_CheckCurveOnSurface() [1/2]

BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface ( )
inline

Default contructor.

◆ BRepLib_CheckCurveOnSurface() [2/2]

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

Contructor.

Member Function Documentation

◆ Compute()

void BRepLib_CheckCurveOnSurface::Compute ( const Handle< Geom2d_Curve > &  thePCurve,
const Standard_Boolean  isTheMultyTheradDisabled 
)
protected

Computes the max distance for the 3d curve of <myCOnSurfGeom> and 2d curve <thePCurve> If isTheMultyTheadDisabled == TRUE then computation will be made without any parallelization.

◆ Curve()

const Handle< Geom_Curve >& BRepLib_CheckCurveOnSurface::Curve ( ) const
inline

Returns source 3D-Curve.

◆ 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.

◆ 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.

◆ PCurve()

const Handle< Geom2d_Curve >& BRepLib_CheckCurveOnSurface::PCurve ( ) const
inline

Returns mine 2D-Curve.

◆ PCurve2()

const Handle< Geom2d_Curve >& BRepLib_CheckCurveOnSurface::PCurve2 ( ) const
inline

Returns 2nd 2D-Curve (if it exists, e.g. for seam-edge)

◆ Perform()

void BRepLib_CheckCurveOnSurface::Perform ( const Standard_Boolean  isTheMultyTheradDisabled = Standard_False)

Performs the calculation If isTheMultyTheadDisabled == TRUE then computation will be made without any parallelization.

◆ Range()

void BRepLib_CheckCurveOnSurface::Range ( Standard_Real theFirst,
Standard_Real theLast 
)
inline

Returns first and last parameter of the curves (2D- and 3D-curves are considered to have same range)

◆ Surface()

const Handle< Geom_Surface >& BRepLib_CheckCurveOnSurface::Surface ( ) const
inline

Returns source surface.


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