Open CASCADE Technology
7.5.0
|
#include <BRepLProp_CLProps.hxx>
Public Member Functions | |
BRepLProp_CLProps (const BRepAdaptor_Curve &C, const Standard_Integer N, const Standard_Real Resolution) | |
Initializes the local properties of the curve The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null). More... | |
BRepLProp_CLProps (const BRepAdaptor_Curve &C, const Standard_Real U, const Standard_Integer N, const Standard_Real Resolution) | |
Same as previous constructor but here the parameter is set to the value <U>. All the computations done will be related to and <U>. More... | |
BRepLProp_CLProps (const Standard_Integer N, const Standard_Real Resolution) | |
Same as previous constructor but here the parameter is set to the value <U> and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and <U> when the functions "set" will be done. More... | |
void | SetParameter (const Standard_Real U) |
Initializes the local properties of the curve for the parameter value <U>. More... | |
void | SetCurve (const BRepAdaptor_Curve &C) |
Initializes the local properties of the curve for the new curve. More... | |
const gp_Pnt & | Value () const |
Returns the Point. More... | |
const gp_Vec & | D1 () |
Returns the first derivative. The derivative is computed if it has not been yet. More... | |
const gp_Vec & | D2 () |
Returns the second derivative. The derivative is computed if it has not been yet. More... | |
const gp_Vec & | D3 () |
Returns the third derivative. The derivative is computed if it has not been yet. More... | |
Standard_Boolean | IsTangentDefined () |
Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null. More... | |
void | Tangent (gp_Dir &D) |
output the tangent direction <D> More... | |
Standard_Real | Curvature () |
Returns the curvature. More... | |
void | Normal (gp_Dir &N) |
Returns the normal direction <N>. More... | |
void | CentreOfCurvature (gp_Pnt &P) |
Returns the centre of curvature. More... | |
BRepLProp_CLProps::BRepLProp_CLProps | ( | const BRepAdaptor_Curve & | C, |
const Standard_Integer | N, | ||
const Standard_Real | Resolution | ||
) |
Initializes the local properties of the curve The current point and the derivatives are computed at the same time, which allows an optimization of the computation time. <N> indicates the maximum number of derivations to be done (0, 1, 2 or 3). For example, to compute only the tangent, N should be equal to 1. <Resolution> is the linear tolerance (it is used to test if a vector is null).
BRepLProp_CLProps::BRepLProp_CLProps | ( | const BRepAdaptor_Curve & | C, |
const Standard_Real | U, | ||
const Standard_Integer | N, | ||
const Standard_Real | Resolution | ||
) |
Same as previous constructor but here the parameter is set to the value <U>. All the computations done will be related to and <U>.
BRepLProp_CLProps::BRepLProp_CLProps | ( | const Standard_Integer | N, |
const Standard_Real | Resolution | ||
) |
Same as previous constructor but here the parameter is set to the value <U> and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and <U> when the functions "set" will be done.
void BRepLProp_CLProps::CentreOfCurvature | ( | gp_Pnt & | P | ) |
Returns the centre of curvature.
.
Standard_Real BRepLProp_CLProps::Curvature | ( | ) |
Returns the curvature.
const gp_Vec& BRepLProp_CLProps::D1 | ( | ) |
Returns the first derivative. The derivative is computed if it has not been yet.
const gp_Vec& BRepLProp_CLProps::D2 | ( | ) |
Returns the second derivative. The derivative is computed if it has not been yet.
const gp_Vec& BRepLProp_CLProps::D3 | ( | ) |
Returns the third derivative. The derivative is computed if it has not been yet.
Standard_Boolean BRepLProp_CLProps::IsTangentDefined | ( | ) |
Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
void BRepLProp_CLProps::Normal | ( | gp_Dir & | N | ) |
Returns the normal direction <N>.
void BRepLProp_CLProps::SetCurve | ( | const BRepAdaptor_Curve & | C | ) |
Initializes the local properties of the curve for the new curve.
void BRepLProp_CLProps::SetParameter | ( | const Standard_Real | U | ) |
Initializes the local properties of the curve for the parameter value <U>.
void BRepLProp_CLProps::Tangent | ( | gp_Dir & | D | ) |
output the tangent direction <D>
const gp_Pnt& BRepLProp_CLProps::Value | ( | ) | const |
Returns the Point.