Ponca  7d8ac87a7de01d881c9fde3c42e397b44bffb901
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::PointPositionNormalBinding< _Scalar, _Dim > Class Template Reference

Variant of the PointPositionNormal data type that uses external raw data. More...

#include <pointTypes.h>

+ Collaboration diagram for Ponca::PointPositionNormalBinding< _Scalar, _Dim >:

Public Types

enum  { Dim = _Dim }
 
using Scalar = _Scalar
 
using VectorType = Eigen::Matrix< Scalar, Dim, 1 >
 
using MatrixType = Eigen::Matrix< Scalar, Dim, Dim >
 

Public Member Functions

 PointPositionNormalBinding (const Scalar *_interlacedArray, const int _pId)
 
const Eigen::Map< const VectorType > & pos () const
 Get the point position.
 
const Eigen::Map< const VectorType > & normal () const
 Get the point normal.
 

Detailed Description

template<typename _Scalar, int _Dim>
class Ponca::PointPositionNormalBinding< _Scalar, _Dim >

Variant of the PointPositionNormal data type that uses external raw data.

Using this approach, one can use the ponca library with already existing data-structures and without any data-duplication.

We use this class to map an interlaced raw array containing both point normals and coordinates, during the instantiation of the class.

See also
PointPositionNormal

Definition at line 90 of file pointTypes.h.

Member Typedef Documentation

◆ MatrixType

template<typename _Scalar , int _Dim>
using Ponca::PointPositionNormalBinding< _Scalar, _Dim >::MatrixType = Eigen::Matrix<Scalar, Dim, Dim>

Definition at line 99 of file pointTypes.h.

◆ Scalar

Definition at line 97 of file pointTypes.h.

◆ VectorType

template<typename _Scalar , int _Dim>
using Ponca::PointPositionNormalBinding< _Scalar, _Dim >::VectorType = Eigen::Matrix<Scalar, Dim, 1>

Definition at line 98 of file pointTypes.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Dim>
anonymous enum

Definition at line 93 of file pointTypes.h.

Constructor & Destructor Documentation

◆ PointPositionNormalBinding()

template<typename _Scalar , int _Dim>
Ponca::PointPositionNormalBinding< _Scalar, _Dim >::PointPositionNormalBinding ( const Scalar _interlacedArray,
const int  _pId 
)
inline

Definition at line 101 of file pointTypes.h.

Member Function Documentation

◆ normal()

template<typename _Scalar , int _Dim>
const Eigen::Map< const VectorType > & Ponca::PointPositionNormalBinding< _Scalar, _Dim >::normal ( ) const
inline

Get the point normal.

Definition at line 110 of file pointTypes.h.

◆ pos()

template<typename _Scalar , int _Dim>
const Eigen::Map< const VectorType > & Ponca::PointPositionNormalBinding< _Scalar, _Dim >::pos ( ) const
inline

Get the point position.

Definition at line 108 of file pointTypes.h.