![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Grid-based point-curve extrema computation class. More...
#include <ExtremaPC_GridEvaluator.hxx>
Data Structures | |
| struct | Candidate |
| Candidate interval for Newton refinement. More... | |
| struct | GridPoint |
| Cached grid point with pre-computed data. More... | |
Public Types | |
| enum class | CandidateType { SignChange , NearZero } |
| Type of candidate extremum detected during grid scan. More... | |
Public Member Functions | |
| ExtremaPC_GridEvaluator ()=default | |
| Default constructor. | |
| template<typename GridEval > | |
| void | BuildGrid (GridEval &theEval, const math_Vector &theParams) |
| Build grid from GeomGridEval D1 results. | |
| const NCollection_Array1< GridPoint > & | Grid () const |
| Returns the cached grid. | |
| ExtremaPC::Result & | Result () const |
| Returns mutable reference to the result for post-processing. | |
| const ExtremaPC::Result & | Perform (const Adaptor3d_Curve &theCurve, const gp_Pnt &theP, const ExtremaPC::Domain1D &theDomain, double theTol, ExtremaPC::SearchMode theMode) const |
| Perform extrema computation using cached grid (interior only). | |
Static Public Member Functions | |
| static math_Vector | BuildUniformParams (double theUMin, double theUMax, int theNbSamples) |
| Build uniform parameter grid. | |
Grid-based point-curve extrema computation class.
Provides grid-based extrema finding algorithm with cached state for optimal performance on repeated queries. Used by BSpline, Bezier, Offset, and other curve evaluators.
Algorithm:
All temporary vectors are stored as mutable fields and reused via Clear() to avoid repeated heap allocations.
|
default |
Default constructor.
|
inline |
Build grid from GeomGridEval D1 results.
| GridEval | type with EvaluateGridD1(params) method |
| theEval | grid evaluator |
| theParams | parameter values (math_Vector with Array1() accessor) |
|
inlinestatic |
Build uniform parameter grid.
|
inline |
Returns the cached grid.
|
inline |
Perform extrema computation using cached grid (interior only).
| theCurve | curve adaptor |
| theP | query point |
| theDomain | parameter domain |
| theTol | tolerance |
| theMode | search mode |
|
inline |
Returns mutable reference to the result for post-processing.