Open CASCADE Technology
6.9.0
|
Computes the max distance between edge and its 2d representation on the face. More...
#include <BRepLib_CheckCurveOnSurface.hxx>
Public Member Functions | |
BRepLib_CheckCurveOnSurface () | |
Empty contructor. More... | |
BRepLib_CheckCurveOnSurface (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace) | |
Contructor. More... | |
BRepLib_CheckCurveOnSurface (const Handle< Geom_Curve > &theCurve, const Handle< Geom2d_Curve > &thePCurve, const Handle< Geom_Surface > &theSurface, const Standard_Real theFirst, const Standard_Real theLast) | |
Contructor. More... | |
void | Init (const TopoDS_Edge &theEdge, const TopoDS_Face &theFace) |
Sets the data for the algorithm. More... | |
void | Init (const Handle< Geom_Curve > &theCurve, const Handle< Geom2d_Curve > &thePCurve, const Handle< Geom_Surface > &theSurface, const Standard_Real theFirst, const Standard_Real theLast) |
Sets the data for the algorithm. More... | |
const Handle< Geom_Curve > & | Curve () const |
Returns my3DCurve. More... | |
const Handle< Geom2d_Curve > & | PCurve () const |
Returns my2DCurve. More... | |
const Handle< Geom2d_Curve > & | PCurve2 () const |
Returns my2DCurve. More... | |
const Handle< Geom_Surface > & | Surface () const |
Returns mySurface. More... | |
void | Range (Standard_Real &theFirst, Standard_Real &theLast) |
Returns the range. More... | |
void | Perform () |
Performs the calculation. 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 | CheckData () |
Checks the data. More... | |
void | Compute (const Handle< Geom2d_Curve > &thePCurve) |
Computes the max distance for the 3d curve <myCurve> and 2d curve <thePCurve> More... | |
Computes the max distance between edge and its 2d representation on the face.
The algorithm can be initialized in the following ways:
BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface | ( | ) |
Empty contructor.
BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface | ( | const TopoDS_Edge & | theEdge, |
const TopoDS_Face & | theFace | ||
) |
Contructor.
BRepLib_CheckCurveOnSurface::BRepLib_CheckCurveOnSurface | ( | const Handle< Geom_Curve > & | theCurve, |
const Handle< Geom2d_Curve > & | thePCurve, | ||
const Handle< Geom_Surface > & | theSurface, | ||
const Standard_Real | theFirst, | ||
const Standard_Real | theLast | ||
) |
Contructor.
|
protected |
Checks the data.
|
protected |
Computes the max distance for the 3d curve <myCurve> and 2d curve <thePCurve>
const Handle< Geom_Curve >& BRepLib_CheckCurveOnSurface::Curve | ( | ) | const |
Returns my3DCurve.
Standard_Integer BRepLib_CheckCurveOnSurface::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.
void BRepLib_CheckCurveOnSurface::Init | ( | const TopoDS_Edge & | theEdge, |
const TopoDS_Face & | theFace | ||
) |
Sets the data for the algorithm.
void BRepLib_CheckCurveOnSurface::Init | ( | const Handle< Geom_Curve > & | theCurve, |
const Handle< Geom2d_Curve > & | thePCurve, | ||
const Handle< Geom_Surface > & | theSurface, | ||
const Standard_Real | theFirst, | ||
const Standard_Real | theLast | ||
) |
Sets the data for the algorithm.
Standard_Boolean BRepLib_CheckCurveOnSurface::IsDone | ( | ) | const |
Returns true if the max distance has been found.
Standard_Real BRepLib_CheckCurveOnSurface::MaxDistance | ( | ) | const |
Returns max distance.
Standard_Real BRepLib_CheckCurveOnSurface::MaxParameter | ( | ) | const |
Returns parameter in which the distance is maximal.
const Handle< Geom2d_Curve >& BRepLib_CheckCurveOnSurface::PCurve | ( | ) | const |
Returns my2DCurve.
const Handle< Geom2d_Curve >& BRepLib_CheckCurveOnSurface::PCurve2 | ( | ) | const |
Returns my2DCurve.
void BRepLib_CheckCurveOnSurface::Perform | ( | ) |
Performs the calculation.
void BRepLib_CheckCurveOnSurface::Range | ( | Standard_Real & | theFirst, |
Standard_Real & | theLast | ||
) |
Returns the range.
const Handle< Geom_Surface >& BRepLib_CheckCurveOnSurface::Surface | ( | ) | const |
Returns mySurface.