![]() |
Patate Lib
0.5
|
Definition of a point sample.
All fitting methods in Grenaille rely on the definition of a Point type. Specific features might be required depending on the content of the Basket: for instance, an OrientedSphereFit will require points equipped with normals as illustrated in the User Manual.
Grenaille does not provide an implementation for this concept so that users may adapt it to their own data structure. However, the following implementation can be used as a starting point for most 3D applications:
Public Types | |
enum | { Dim = 3 } |
Defines the ambient space dimension, 3 in this example. | |
typedef float | Scalar |
Defines the type used ton encode scalar values. | |
typedef Eigen::Matrix< Scalar, Dim, 1 > | VectorType |
Defines type used ton encode vector values. | |
Public Member Functions | |
PointConcept () | |
Default constructor. | |
const VectorType & | pos () const |
Read access to the position property. | |
VectorType & | pos () |
Write access to the position property. | |