![]() |
Open CASCADE Technology Reference Manual 8.0.2
|
Unified grid evaluator for any 3D curve. More...
#include <GeomGridEval_Curve.hxx>
Public Types | |
| using | EvaluatorVariant |
| Variant type holding all possible curve evaluators. | |
Public Member Functions | |
| GeomGridEval_Curve (const Adaptor3d_Curve &theCurve) | |
| Construct from adaptor reference (auto-detects curve type). For GeomAdaptor_Curve, extracts underlying Geom_Curve for optimized evaluation. For other adaptors, stores reference for fallback evaluation. | |
| GeomGridEval_Curve (const occ::handle< Geom_Curve > &theCurve) | |
| Construct from geometry handle (auto-detects curve type). | |
| GeomGridEval_Curve (const GeomGridEval_Curve &)=delete | |
| Non-copyable and non-movable. | |
| GeomGridEval_Curve & | operator= (const GeomGridEval_Curve &)=delete |
| GeomGridEval_Curve (GeomGridEval_Curve &&)=delete | |
| GeomGridEval_Curve & | operator= (GeomGridEval_Curve &&)=delete |
| NCollection_Array1< gp_Pnt > | EvaluateGrid (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points at all parameters. | |
| NCollection_Array1< GeomGridEval::CurveD1 > | EvaluateGridD1 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first derivative. | |
| NCollection_Array1< GeomGridEval::CurveD2 > | EvaluateGridD2 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first and second derivatives. | |
| NCollection_Array1< GeomGridEval::CurveD3 > | EvaluateGridD3 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first, second, and third derivatives. | |
| NCollection_Array1< gp_Vec > | EvaluateGridDN (const NCollection_Array1< double > &theParams, int theN) const |
| Evaluate Nth derivative at all grid points. | |
| GeomAbs_CurveType | GetType () const |
| Returns the detected curve type. | |
Protected Member Functions | |
| void | initialization (const Adaptor3d_Curve &theCurve) |
| Initialize from adaptor reference (auto-detects curve type). | |
| void | initialization (const occ::handle< Geom_Curve > &theCurve) |
| Initialize from geometry handle (auto-detects curve type). | |
Unified grid evaluator for any 3D curve.
Uses std::variant for compile-time type safety and zero heap allocation for the evaluator itself. Automatically detects curve type from Adaptor3d_Curve and dispatches to the appropriate specialized evaluator.
Supported curve types with optimized evaluation:
Usage:
Variant type holding all possible curve evaluators.
| GeomGridEval_Curve::GeomGridEval_Curve | ( | const Adaptor3d_Curve & | theCurve | ) |
Construct from adaptor reference (auto-detects curve type). For GeomAdaptor_Curve, extracts underlying Geom_Curve for optimized evaluation. For other adaptors, stores reference for fallback evaluation.
| [in] | theCurve | curve adaptor reference to evaluate |
| GeomGridEval_Curve::GeomGridEval_Curve | ( | const occ::handle< Geom_Curve > & | theCurve | ) |
Construct from geometry handle (auto-detects curve type).
| [in] | theCurve | geometry to evaluate |
|
delete |
Non-copyable and non-movable.
|
delete |
| NCollection_Array1< gp_Pnt > GeomGridEval_Curve::EvaluateGrid | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points at all parameters.
| theParams | array of parameter values |
| NCollection_Array1< GeomGridEval::CurveD1 > GeomGridEval_Curve::EvaluateGridD1 | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points with first derivative.
| theParams | array of parameter values |
| NCollection_Array1< GeomGridEval::CurveD2 > GeomGridEval_Curve::EvaluateGridD2 | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points with first and second derivatives.
| theParams | array of parameter values |
| NCollection_Array1< GeomGridEval::CurveD3 > GeomGridEval_Curve::EvaluateGridD3 | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points with first, second, and third derivatives.
| theParams | array of parameter values |
| NCollection_Array1< gp_Vec > GeomGridEval_Curve::EvaluateGridDN | ( | const NCollection_Array1< double > & | theParams, |
| int | theN ) const |
Evaluate Nth derivative at all grid points.
| theParams | array of parameter values |
| theN | derivative order (N >= 1) |
|
inline |
Returns the detected curve type.
|
protected |
Initialize from adaptor reference (auto-detects curve type).
| [in] | theCurve | curve adaptor reference to evaluate |
|
protected |
Initialize from geometry handle (auto-detects curve type).
| [in] | theCurve | geometry to evaluate |
|
delete |
|
delete |