Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
GeomGridEval_Sphere Class Reference

Efficient batch evaluator for sphere grid points. More...

#include <GeomGridEval_Sphere.hxx>

Public Member Functions

 GeomGridEval_Sphere (const occ::handle< Geom_SphericalSurface > &theSphere)
 Constructor with geometry.
 
 GeomGridEval_Sphere (const GeomGridEval_Sphere &)=delete
 Non-copyable and non-movable.
 
GeomGridEval_Sphereoperator= (const GeomGridEval_Sphere &)=delete
 
 GeomGridEval_Sphere (GeomGridEval_Sphere &&)=delete
 
GeomGridEval_Sphereoperator= (GeomGridEval_Sphere &&)=delete
 
const occ::handle< Geom_SphericalSurface > & Geometry () const
 Returns the geometry handle.
 
NCollection_Array2< gp_PntEvaluateGrid (const NCollection_Array1< double > &theUParams, const NCollection_Array1< double > &theVParams) const
 Evaluate grid points at Cartesian product of U and V parameters.
 
NCollection_Array2< GeomGridEval::SurfD1EvaluateGridD1 (const NCollection_Array1< double > &theUParams, const NCollection_Array1< double > &theVParams) const
 Evaluate grid points with first partial derivatives.
 
NCollection_Array2< GeomGridEval::SurfD2EvaluateGridD2 (const NCollection_Array1< double > &theUParams, const NCollection_Array1< double > &theVParams) const
 Evaluate grid points with first and second partial derivatives.
 
NCollection_Array2< GeomGridEval::SurfD3EvaluateGridD3 (const NCollection_Array1< double > &theUParams, const NCollection_Array1< double > &theVParams) const
 Evaluate grid points with derivatives up to third order.
 
NCollection_Array2< gp_VecEvaluateGridDN (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.
 

Detailed Description

Efficient batch evaluator for sphere grid points.

Uses analytical formula: P(u,v) = Center + R * (cos(v) * cos(u) * XDir + cos(v) * sin(u) * YDir + sin(v) * ZDir)

Where U is longitude (0 to 2*PI) and V is latitude (-PI/2 to PI/2).

Usage:

NCollection_Array2<gp_Pnt> aGrid = anEvaluator.EvaluateGrid(myUParams, myVParams);
Efficient batch evaluator for sphere grid points.
Definition GeomGridEval_Sphere.hxx:37
STL input iterator that wraps an OCCT More()/Next() iterator.
Definition NCollection_ForwardRange.hxx:142

Constructor & Destructor Documentation

◆ GeomGridEval_Sphere() [1/3]

GeomGridEval_Sphere::GeomGridEval_Sphere ( const occ::handle< Geom_SphericalSurface > & theSphere)
inline

Constructor with geometry.

Parameters
theSpherethe spherical surface geometry to evaluate

◆ GeomGridEval_Sphere() [2/3]

GeomGridEval_Sphere::GeomGridEval_Sphere ( const GeomGridEval_Sphere & )
delete

Non-copyable and non-movable.

◆ GeomGridEval_Sphere() [3/3]

GeomGridEval_Sphere::GeomGridEval_Sphere ( GeomGridEval_Sphere && )
delete

Member Function Documentation

◆ EvaluateGrid()

NCollection_Array2< gp_Pnt > GeomGridEval_Sphere::EvaluateGrid ( const NCollection_Array1< double > & theUParams,
const NCollection_Array1< double > & theVParams ) const

Evaluate grid points at Cartesian product of U and V parameters.

Parameters
theUParamsarray of U parameter values (longitude)
theVParamsarray of V parameter values (latitude)
Returns
2D array of evaluated points (1-based indexing)

◆ EvaluateGridD1()

NCollection_Array2< GeomGridEval::SurfD1 > GeomGridEval_Sphere::EvaluateGridD1 ( const NCollection_Array1< double > & theUParams,
const NCollection_Array1< double > & theVParams ) const

Evaluate grid points with first partial derivatives.

Parameters
theUParamsarray of U parameter values (longitude)
theVParamsarray of V parameter values (latitude)
Returns
2D array of SurfD1 (1-based indexing)

◆ EvaluateGridD2()

NCollection_Array2< GeomGridEval::SurfD2 > GeomGridEval_Sphere::EvaluateGridD2 ( const NCollection_Array1< double > & theUParams,
const NCollection_Array1< double > & theVParams ) const

Evaluate grid points with first and second partial derivatives.

Parameters
theUParamsarray of U parameter values (longitude)
theVParamsarray of V parameter values (latitude)
Returns
2D array of SurfD2 (1-based indexing)

◆ EvaluateGridD3()

NCollection_Array2< GeomGridEval::SurfD3 > GeomGridEval_Sphere::EvaluateGridD3 ( const NCollection_Array1< double > & theUParams,
const NCollection_Array1< double > & theVParams ) const

Evaluate grid points with derivatives up to third order.

Parameters
theUParamsarray of U parameter values (longitude)
theVParamsarray of V parameter values (latitude)
Returns
2D array of SurfD3 (1-based indexing)

◆ EvaluateGridDN()

NCollection_Array2< gp_Vec > GeomGridEval_Sphere::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.

Parameters
theUParamsarray of U parameter values (longitude)
theVParamsarray of V parameter values (latitude)
theNUderivative order in U direction
theNVderivative order in V direction
Returns
2D array of derivative vectors (1-based indexing)

◆ Geometry()

const occ::handle< Geom_SphericalSurface > & GeomGridEval_Sphere::Geometry ( ) const
inline

Returns the geometry handle.

◆ operator=() [1/2]

GeomGridEval_Sphere & GeomGridEval_Sphere::operator= ( const GeomGridEval_Sphere & )
delete

◆ operator=() [2/2]

GeomGridEval_Sphere & GeomGridEval_Sphere::operator= ( GeomGridEval_Sphere && )
delete

The documentation for this class was generated from the following file: