Added a ToEigenVector method
This commit is contained in:
parent
ecd88fcb28
commit
b26b406f8f
vcg/space
|
@ -179,6 +179,13 @@ public:
|
||||||
_v[1] = P3ScalarType(b[1]);
|
_v[1] = P3ScalarType(b[1]);
|
||||||
_v[2] = P3ScalarType(b[2]);
|
_v[2] = P3ScalarType(b[2]);
|
||||||
}
|
}
|
||||||
|
template <class EigenVector>
|
||||||
|
inline void ToEigenVector( EigenVector & b ) const
|
||||||
|
{
|
||||||
|
b[0]=_v[0] ;
|
||||||
|
b[1]=_v[1] ;
|
||||||
|
b[2]=_v[2] ;
|
||||||
|
}
|
||||||
template <class Q>
|
template <class Q>
|
||||||
static inline Point3 Construct( const Point3<Q> & b )
|
static inline Point3 Construct( const Point3<Q> & b )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue