Implementation class for computing local properties of a curve: point, derivatives up to order 3, tangent, curvature, normal, and centre of curvature. Parameterized by geometric types (Pnt/Vec/Dir) and curve type.
More...
#include <GeomLProp_CLProps.hxx>
|
| | GeomLProp_CLPropsBase (const CurveType &C, const int N, const double 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).
|
| |
| | GeomLProp_CLPropsBase (const CurveType &C, const double U, const int N, const double Resolution) |
| | Same as previous constructor but here the parameter is set to the value . All the computations done will be related to and .
|
| |
| | GeomLProp_CLPropsBase (const int N, const double Resolution) |
| | Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and when the functions "set" will be done.
|
| |
| void | SetParameter (const double U) |
| | Initializes the local properties of the curve for the parameter value .
|
| |
| void | SetCurve (const CurveType &C) |
| | Initializes the local properties of the curve for the new curve.
|
| |
| const Pnt & | Value () const |
| | Returns the Point.
|
| |
| const Vec & | D1 () |
| | Returns the first derivative. The derivative is computed if it has not been yet.
|
| |
| const Vec & | D2 () |
| | Returns the second derivative. The derivative is computed if it has not been yet.
|
| |
| const Vec & | D3 () |
| | Returns the third derivative. The derivative is computed if it has not been yet.
|
| |
| bool | IsTangentDefined () |
| | Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
|
| |
| void | Tangent (Dir &D) |
| | output the tangent direction <D>.
|
| |
| double | Curvature () |
| | Returns the curvature.
|
| |
| void | Normal (Dir &N) |
| | Returns the normal direction <N>.
|
| |
| void | CentreOfCurvature (Pnt &P) |
| | Returns the centre of curvature.
|
| |
Implementation class for computing local properties of a curve: point, derivatives up to order 3, tangent, curvature, normal, and centre of curvature. Parameterized by geometric types (Pnt/Vec/Dir) and curve type.
- Template Parameters
-
| Pnt | the point type (gp_Pnt for 3D, gp_Pnt2d for 2D) |
| Vec | the vector type (gp_Vec for 3D, gp_Vec2d for 2D) |
| Dir | the direction type (gp_Dir for 3D, gp_Dir2d for 2D) |
| CurveType | the curve storage type |
| Access | the access policy for evaluating curve derivatives |
◆ GeomLProp_CLPropsBase() [1/3]
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).
◆ GeomLProp_CLPropsBase() [2/3]
Same as previous constructor but here the parameter is set to the value . All the computations done will be related to and .
◆ GeomLProp_CLPropsBase() [3/3]
Same as previous constructor but here the parameter is set to the value and the curve is set with SetCurve. the curve can have a empty constructor All the computations done will be related to and when the functions "set" will be done.
◆ CentreOfCurvature()
Returns the centre of curvature.
.
◆ Curvature()
◆ D1()
Returns the first derivative. The derivative is computed if it has not been yet.
◆ D2()
Returns the second derivative. The derivative is computed if it has not been yet.
◆ D3()
Returns the third derivative. The derivative is computed if it has not been yet.
◆ IsTangentDefined()
Returns True if the tangent is defined. For example, the tangent is not defined if the three first derivatives are all null.
◆ Normal()
Returns the normal direction <N>.
◆ SetCurve()
Initializes the local properties of the curve for the new curve.
◆ SetParameter()
Initializes the local properties of the curve for the parameter value .
◆ Tangent()
output the tangent direction <D>.
◆ Value()
The documentation for this class was generated from the following file: