![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Efficient batch evaluator for torus grid points. More...
#include <GeomGridEval_Torus.hxx>
Efficient batch evaluator for torus grid points.
Uses analytical formula: P(u,v) = Location + (MajorRadius + MinorRadius * cos(v)) * (cos(u) * XDir + sin(u) * YDir) + MinorRadius * sin(v) * ZDir
Where U is major angle (0 to 2*PI) and V is minor angle (0 to 2*PI).
Usage:
|
inline |
Constructor with geometry.
| theTorus | the toroidal surface geometry to evaluate |
|
delete |
Non-copyable and non-movable.
|
delete |
| NCollection_Array2< gp_Pnt > GeomGridEval_Torus::EvaluateGrid | ( | const NCollection_Array1< double > & | theUParams, |
| const NCollection_Array1< double > & | theVParams ) const |
Evaluate grid points at Cartesian product of U and V parameters.
| theUParams | array of U parameter values (major angle) |
| theVParams | array of V parameter values (minor angle) |
| NCollection_Array2< GeomGridEval::SurfD1 > GeomGridEval_Torus::EvaluateGridD1 | ( | const NCollection_Array1< double > & | theUParams, |
| const NCollection_Array1< double > & | theVParams ) const |
Evaluate grid points with first partial derivatives.
| theUParams | array of U parameter values (major angle) |
| theVParams | array of V parameter values (minor angle) |
| NCollection_Array2< GeomGridEval::SurfD2 > GeomGridEval_Torus::EvaluateGridD2 | ( | const NCollection_Array1< double > & | theUParams, |
| const NCollection_Array1< double > & | theVParams ) const |
Evaluate grid points with first and second partial derivatives.
| theUParams | array of U parameter values (major angle) |
| theVParams | array of V parameter values (minor angle) |
| NCollection_Array2< GeomGridEval::SurfD3 > GeomGridEval_Torus::EvaluateGridD3 | ( | const NCollection_Array1< double > & | theUParams, |
| const NCollection_Array1< double > & | theVParams ) const |
Evaluate grid points with derivatives up to third order.
| theUParams | array of U parameter values (major angle) |
| theVParams | array of V parameter values (minor angle) |
| NCollection_Array2< gp_Vec > GeomGridEval_Torus::EvaluateGridDN | ( | const NCollection_Array1< double > & | theUParams, |
| const NCollection_Array1< double > & | theVParams, | ||
| int | theNU, | ||
| int | theNV ) const |
Evaluate partial derivative d^(NU+NV)S/(dU^NU dV^NV) at all grid points. For orders 1-3, reuses EvaluateGridD1/D2/D3. For orders > 3, uses geometry DN method.
| theUParams | array of U parameter values (major angle) |
| theVParams | array of V parameter values (minor angle) |
| theNU | derivative order in U direction |
| theNV | derivative order in V direction |
|
inline |
Returns the geometry handle.
|
delete |
|
delete |