Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
Geom2dGridEval_Hyperbola Class Reference

Efficient batch evaluator for 2D hyperbola grid points. More...

#include <Geom2dGridEval_Hyperbola.hxx>

Public Member Functions

 Geom2dGridEval_Hyperbola (const occ::handle< Geom2d_Hyperbola > &theHyperbola)
 Constructor with geometry.
 Geom2dGridEval_Hyperbola (const Geom2dGridEval_Hyperbola &)=delete
 Non-copyable and non-movable.
Geom2dGridEval_Hyperbola & operator= (const Geom2dGridEval_Hyperbola &)=delete
 Geom2dGridEval_Hyperbola (Geom2dGridEval_Hyperbola &&)=delete
Geom2dGridEval_Hyperbola & operator= (Geom2dGridEval_Hyperbola &&)=delete
const occ::handle< Geom2d_Hyperbola > & Geometry () const
 Returns the geometry handle.
NCollection_Array1< gp_Pnt2d > EvaluateGrid (const NCollection_Array1< double > &theParams) const
 Evaluate all grid points.
NCollection_Array1< Geom2dGridEval::CurveD1 > EvaluateGridD1 (const NCollection_Array1< double > &theParams) const
 Evaluate all grid points with first derivative.
NCollection_Array1< Geom2dGridEval::CurveD2 > EvaluateGridD2 (const NCollection_Array1< double > &theParams) const
 Evaluate all grid points with first and second derivatives.
NCollection_Array1< Geom2dGridEval::CurveD3 > EvaluateGridD3 (const NCollection_Array1< double > &theParams) const
 Evaluate all 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. Hyperbola has cyclic derivatives with period 2: D1 = MajR * sinh(u) * X + MinR * cosh(u) * Y D2 = MajR * cosh(u) * X + MinR * sinh(u) * Y = D0 D3 = D1, D4 = D0, etc.

Detailed Description

Efficient batch evaluator for 2D hyperbola grid points.

Uses analytical formula: P(u) = Center + MajorRadius * cosh(u) * XDir + MinorRadius * sinh(u) * YDir

Usage:

Geom2dGridEval_Hyperbola anEvaluator(myGeom2dHyperbola);
NCollection_Array1<gp_Pnt2d> aGrid = anEvaluator.EvaluateGrid(myParams);
Geom2dGridEval_Hyperbola(const occ::handle< Geom2d_Hyperbola > &theHyperbola)
Constructor with geometry.
Definition Geom2dGridEval_Hyperbola.hxx:40
The class NCollection_Array1 represents unidimensional arrays of fixed size known at run time....
Definition NCollection_Array1.hxx:71

Constructor & Destructor Documentation

◆ Geom2dGridEval_Hyperbola() [1/3]

Geom2dGridEval_Hyperbola::Geom2dGridEval_Hyperbola ( const occ::handle< Geom2d_Hyperbola > & theHyperbola)
inline

Constructor with geometry.

Parameters
theHyperbolathe 2D hyperbola geometry to evaluate

◆ Geom2dGridEval_Hyperbola() [2/3]

Geom2dGridEval_Hyperbola::Geom2dGridEval_Hyperbola ( const Geom2dGridEval_Hyperbola & )
delete

Non-copyable and non-movable.

◆ Geom2dGridEval_Hyperbola() [3/3]

Geom2dGridEval_Hyperbola::Geom2dGridEval_Hyperbola ( Geom2dGridEval_Hyperbola && )
delete

Member Function Documentation

◆ EvaluateGrid()

NCollection_Array1< gp_Pnt2d > Geom2dGridEval_Hyperbola::EvaluateGrid ( const NCollection_Array1< double > & theParams) const

Evaluate all grid points.

Parameters
theParamsarray of parameter values
Returns
array of evaluated points (1-based indexing), or empty array if geometry is null or no parameters

◆ EvaluateGridD1()

NCollection_Array1< Geom2dGridEval::CurveD1 > Geom2dGridEval_Hyperbola::EvaluateGridD1 ( const NCollection_Array1< double > & theParams) const

Evaluate all grid points with first derivative.

Parameters
theParamsarray of parameter values
Returns
array of CurveD1 (1-based indexing)

◆ EvaluateGridD2()

NCollection_Array1< Geom2dGridEval::CurveD2 > Geom2dGridEval_Hyperbola::EvaluateGridD2 ( const NCollection_Array1< double > & theParams) const

Evaluate all grid points with first and second derivatives.

Parameters
theParamsarray of parameter values
Returns
array of CurveD2 (1-based indexing)

◆ EvaluateGridD3()

NCollection_Array1< Geom2dGridEval::CurveD3 > Geom2dGridEval_Hyperbola::EvaluateGridD3 ( const NCollection_Array1< double > & theParams) const

Evaluate all grid points with first, second, and third derivatives.

Parameters
theParamsarray of parameter values
Returns
array of CurveD3 (1-based indexing)

◆ EvaluateGridDN()

NCollection_Array1< gp_Vec2d > Geom2dGridEval_Hyperbola::EvaluateGridDN ( const NCollection_Array1< double > & theParams,
int theN ) const

Evaluate Nth derivative at all grid points. Hyperbola has cyclic derivatives with period 2: D1 = MajR * sinh(u) * X + MinR * cosh(u) * Y D2 = MajR * cosh(u) * X + MinR * sinh(u) * Y = D0 D3 = D1, D4 = D0, etc.

Parameters
theParamsarray of parameter values
theNderivative order (N >= 1)
Returns
array of derivative vectors (1-based indexing)

◆ Geometry()

const occ::handle< Geom2d_Hyperbola > & Geom2dGridEval_Hyperbola::Geometry ( ) const
inline

Returns the geometry handle.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Geom2dGridEval_Hyperbola & Geom2dGridEval_Hyperbola::operator= ( Geom2dGridEval_Hyperbola && )
delete

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