44 #ifndef _SHARED_4PCS_H_ 45 #define _SHARED_4PCS_H_ 47 #include "gr/utils/disablewarnings.h" 59 #ifdef PARSED_BY_DOXYGEN 84 template<
typename _Scalar>
86 #ifdef PARSED_BY_DOXYGEN 91 using Scalar = _Scalar;
114 normal_ = normal.normalized();
120 inline bool hasColor()
const {
return rgb_.squaredNorm() > Scalar(0.001); }
122 Scalar&
x() {
return pos_.coeffRef(0); }
123 Scalar&
y() {
return pos_.coeffRef(1); }
124 Scalar&
z() {
return pos_.coeffRef(2); }
126 Scalar
x()
const {
return pos_.coeff(0); }
127 Scalar
y()
const {
return pos_.coeff(1); }
128 Scalar
z()
const {
return pos_.coeff(2); }
Point3D(Scalar x, Scalar y, Scalar z)
Definition: shared.h:94
const VectorType & rgb() const
Definition: shared.h:107
Point3D(const Point3D &other)
Definition: shared.h:95
Scalar x() const
Definition: shared.h:126
Point3D()
Definition: shared.h:104
Scalar y() const
Definition: shared.h:127
bool hasColor() const
Definition: shared.h:120
Scalar z() const
Definition: shared.h:128
Scalar & z()
Definition: shared.h:124
const VectorType & pos() const
Definition: shared.h:106
void normalize()
Definition: shared.h:117
void set_rgb(const VectorType &rgb)
Definition: shared.h:110
VectorType & pos()
Definition: shared.h:105
CongruentSetExplorationBase< Traits, PointType, TransformVisitor, PairFilteringFunctor, OptExts... >::Scalar ComputeTransformation(const InputRange1 &P, const InputRange2 &Q, Eigen::Ref< typename CongruentSetExplorationBase< Traits, PointType, TransformVisitor, PairFilteringFunctor, OptExts... >::MatrixType > transformation, const Sampler< PointType > &sampler, TransformVisitor &v)
Definition: congruentSetExplorationBase.hpp:61
void set_normal(const VectorType &normal)
Definition: shared.h:113
const VectorType & normal() const
Definition: shared.h:109
Scalar & x()
Definition: shared.h:122
Scalar & y()
Definition: shared.h:123