![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Unified grid evaluator for any 2D curve. More...
#include <Geom2dGridEval_Curve.hxx>
Public Types | |
| using | EvaluatorVariant |
| Variant type holding all possible 2D curve evaluators. | |
Public Member Functions | |
| Geom2dGridEval_Curve (const Adaptor2d_Curve2d &theCurve) | |
| Construct from 2D adaptor reference (auto-detects curve type). For Geom2dAdaptor_Curve, extracts underlying Geom2d_Curve for optimized evaluation. For other adaptors, stores reference for fallback evaluation. | |
| Geom2dGridEval_Curve (const occ::handle< Geom2d_Curve > &theCurve) | |
| Construct from geometry handle (auto-detects curve type). | |
| Geom2dGridEval_Curve (const Geom2dGridEval_Curve &)=delete | |
| Non-copyable and non-movable. | |
| Geom2dGridEval_Curve & | operator= (const Geom2dGridEval_Curve &)=delete |
| Geom2dGridEval_Curve (Geom2dGridEval_Curve &&)=delete | |
| Geom2dGridEval_Curve & | operator= (Geom2dGridEval_Curve &&)=delete |
| NCollection_Array1< gp_Pnt2d > | EvaluateGrid (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points at all parameters. | |
| NCollection_Array1< Geom2dGridEval::CurveD1 > | EvaluateGridD1 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first derivative. | |
| NCollection_Array1< Geom2dGridEval::CurveD2 > | EvaluateGridD2 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first and second derivatives. | |
| NCollection_Array1< Geom2dGridEval::CurveD3 > | EvaluateGridD3 (const NCollection_Array1< double > &theParams) const |
| Evaluate grid points with first, second, and third derivatives. | |
| NCollection_Array1< gp_Vec2d > | 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 Adaptor2d_Curve2d &theCurve) |
| Initialize from 2D adaptor reference (auto-detects curve type). | |
| void | initialization (const occ::handle< Geom2d_Curve > &theCurve) |
| Initialize from geometry handle (auto-detects curve type). | |
Unified grid evaluator for any 2D curve.
Uses std::variant for compile-time type safety and zero heap allocation for the evaluator itself. Automatically detects curve type from Adaptor2d_Curve2d and dispatches to the appropriate specialized evaluator.
Supported curve types with optimized evaluation:
Usage:
Variant type holding all possible 2D curve evaluators.
| Geom2dGridEval_Curve::Geom2dGridEval_Curve | ( | const Adaptor2d_Curve2d & | theCurve | ) |
Construct from 2D adaptor reference (auto-detects curve type). For Geom2dAdaptor_Curve, extracts underlying Geom2d_Curve for optimized evaluation. For other adaptors, stores reference for fallback evaluation.
| [in] | theCurve | 2D curve adaptor reference to evaluate |
| Geom2dGridEval_Curve::Geom2dGridEval_Curve | ( | const occ::handle< Geom2d_Curve > & | theCurve | ) |
Construct from geometry handle (auto-detects curve type).
| [in] | theCurve | 2D geometry to evaluate |
|
delete |
Non-copyable and non-movable.
|
delete |
| NCollection_Array1< gp_Pnt2d > Geom2dGridEval_Curve::EvaluateGrid | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points at all parameters.
| theParams | array of parameter values |
| NCollection_Array1< Geom2dGridEval::CurveD1 > Geom2dGridEval_Curve::EvaluateGridD1 | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points with first derivative.
| theParams | array of parameter values |
| NCollection_Array1< Geom2dGridEval::CurveD2 > Geom2dGridEval_Curve::EvaluateGridD2 | ( | const NCollection_Array1< double > & | theParams | ) | const |
Evaluate grid points with first and second derivatives.
| theParams | array of parameter values |
| NCollection_Array1< Geom2dGridEval::CurveD3 > Geom2dGridEval_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_Vec2d > Geom2dGridEval_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 2D adaptor reference (auto-detects curve type).
| [in] | theCurve | 2D curve adaptor reference to evaluate |
|
protected |
Initialize from geometry handle (auto-detects curve type).
| [in] | theCurve | 2D geometry to evaluate |
|
delete |
|
delete |