3.4.0
tigl::CTiglPointTranslator Class Reference

#include <CTiglPointTranslator.h>

Data Structures

class  SegmentProjection
 

Public Member Functions

TIGL_EXPORT CTiglPointTranslator ()
 
TIGL_EXPORT CTiglPointTranslator (const CTiglPoint &xfl, const CTiglPoint &xfr, const CTiglPoint &xbl, const CTiglPoint &xbr)
 The class is initialized with the corners of a quadriangle. More...
 
TIGL_EXPORT TiglReturnCode getNormal (double eta, double xsi, CTiglPoint *n) const
 
TIGL_EXPORT TiglReturnCode project (const CTiglPoint &p, CTiglPoint *pOnSurf)
 Projects the point p onto the plane and returns that point pOnSurf. The function is not reentrant. If you want to parallelize it, use multiple instances of CTiglPointTranslator. More...
 
TIGL_EXPORT void setQuadriangle (const CTiglPoint &xfl, const CTiglPoint &xfr, const CTiglPoint &xbl, const CTiglPoint &xbr)
 Defines the quadriangle by the given for spatial points. More...
 
TIGL_EXPORT TiglReturnCode translate (const CTiglPoint &p, double *eta, double *xsi) const
 Finds an eta-xsi coordinate that minimizes the distance to point p. The function is not reentrant. If you want to parallelize it, use multiple instances of CTiglPointTranslator. More...
 
TIGL_EXPORT TiglReturnCode translate (double eta, double xsi, CTiglPoint *p) const
 Converts from eta-xsi to spatial coordinates. Reentrant. More...
 

Private Member Functions

void calcPoint (double eta, double xsi, CTiglPoint &p) const
 

Private Attributes

CTiglPoint a
 
CTiglPoint b
 
CTiglPoint c
 
CTiglPoint d
 
bool initialized
 

Constructor & Destructor Documentation

◆ CTiglPointTranslator() [1/2]

TIGL_EXPORT tigl::CTiglPointTranslator::CTiglPointTranslator ( )

◆ CTiglPointTranslator() [2/2]

TIGL_EXPORT tigl::CTiglPointTranslator::CTiglPointTranslator ( const CTiglPoint xfl,
const CTiglPoint xfr,
const CTiglPoint xbl,
const CTiglPoint xbr 
)

The class is initialized with the corners of a quadriangle.

Parameters
xfl(in) Coordinate of front left point
xfr(in) Coordinate of front right point
xbl(in) Coordinate of back left point
xbr(in) Coordinate of back right point

Member Function Documentation

◆ calcPoint()

void tigl::CTiglPointTranslator::calcPoint ( double  eta,
double  xsi,
CTiglPoint p 
) const
private

◆ getNormal()

TIGL_EXPORT TiglReturnCode tigl::CTiglPointTranslator::getNormal ( double  eta,
double  xsi,
CTiglPoint n 
) const

◆ project()

TIGL_EXPORT TiglReturnCode tigl::CTiglPointTranslator::project ( const CTiglPoint p,
CTiglPoint pOnSurf 
)

Projects the point p onto the plane and returns that point pOnSurf. The function is not reentrant. If you want to parallelize it, use multiple instances of CTiglPointTranslator.

◆ setQuadriangle()

TIGL_EXPORT void tigl::CTiglPointTranslator::setQuadriangle ( const CTiglPoint xfl,
const CTiglPoint xfr,
const CTiglPoint xbl,
const CTiglPoint xbr 
)

Defines the quadriangle by the given for spatial points.

Parameters
xfl(in) Coordinate of front left point
xfr(in) Coordinate of front right point
xbl(in) Coordinate of back left point
xbr(in) Coordinate of back right point

◆ translate() [1/2]

TIGL_EXPORT TiglReturnCode tigl::CTiglPointTranslator::translate ( const CTiglPoint p,
double *  eta,
double *  xsi 
) const

Finds an eta-xsi coordinate that minimizes the distance to point p. The function is not reentrant. If you want to parallelize it, use multiple instances of CTiglPointTranslator.

◆ translate() [2/2]

TIGL_EXPORT TiglReturnCode tigl::CTiglPointTranslator::translate ( double  eta,
double  xsi,
CTiglPoint p 
) const

Converts from eta-xsi to spatial coordinates. Reentrant.

Field Documentation

◆ a

CTiglPoint tigl::CTiglPointTranslator::a
private

◆ b

CTiglPoint tigl::CTiglPointTranslator::b
private

◆ c

CTiglPoint tigl::CTiglPointTranslator::c
private

◆ d

CTiglPoint tigl::CTiglPointTranslator::d
private

◆ initialized

bool tigl::CTiglPointTranslator::initialized
private

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