Efficient batch evaluator for B-spline surface points.
More...
#include <GeomGridEval_BSplineSurface.hxx>
Efficient batch evaluator for B-spline surface points.
Stateless evaluator - constructor takes geometry, parameters passed to methods.
Optimizes evaluation by:
- Pre-computing span indices for U and V parameters separately (O(aNbU + aNbV))
- Grouping evaluation by (USpan, VSpan) for cache-optimal iteration
- Rebuilding cache only once per span group (not per point)
- Writing results directly to 2D output grid (no intermediate buffers)
Usage:
GeomGridEval_BSplineSurface(const occ::handle< Geom_BSplineSurface > &theSurface)
Constructor with geometry.
Definition GeomGridEval_BSplineSurface.hxx:47
Definition NCollection_Array2.hxx:52
◆ GeomGridEval_BSplineSurface() [1/3]
Constructor with geometry.
- Parameters
-
| theSurface | the B-spline surface to evaluate |
◆ GeomGridEval_BSplineSurface() [2/3]
Non-copyable and non-movable.
◆ GeomGridEval_BSplineSurface() [3/3]
◆ EvaluateGrid()
Evaluate grid points at Cartesian product of U and V parameters. Points are evaluated in span-grouped order to minimize cache rebuilds.
- Parameters
-
| theUParams | array of U parameter values |
| theVParams | array of V parameter values |
- Returns
- 2D array of evaluated points (1-based indexing), or empty array if geometry is null or parameters empty
◆ EvaluateGridD1()
Evaluate grid points with first partial derivatives.
- Parameters
-
| theUParams | array of U parameter values |
| theVParams | array of V parameter values |
- Returns
- 2D array of SurfD1 (1-based indexing), or empty array if geometry is null or parameters empty
◆ EvaluateGridD2()
Evaluate grid points with first and second partial derivatives.
- Parameters
-
| theUParams | array of U parameter values |
| theVParams | array of V parameter values |
- Returns
- 2D array of SurfD2 (1-based indexing), or empty array if geometry is null or parameters empty
◆ EvaluateGridD3()
Evaluate grid points with derivatives up to third order. Uses direct BSplSLib::D3 evaluation (no caching for D3).
- Parameters
-
| theUParams | array of U parameter values |
| theVParams | array of V parameter values |
- Returns
- 2D array of SurfD3 (1-based indexing), or empty array if geometry is null or parameters empty
◆ EvaluateGridDN()
Evaluate partial derivative d^(NU+NV)S/(dU^NU dV^NV) at all grid points. For orders > degree in either direction, returns zero. Uses direct geometry DN method.
- Parameters
-
| theUParams | array of U parameter values |
| theVParams | array of V parameter values |
| theNU | derivative order in U direction |
| theNV | derivative order in V direction |
- Returns
- 2D array of derivative vectors (1-based indexing)
◆ Geometry()
Returns the geometry handle.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: