Minor note about eigen3

felipesanches-svg
Marius Kintel 2013-02-10 21:15:52 -05:00
parent a4fea6df86
commit d06d0e323e
1 changed files with 2 additions and 0 deletions

View File

@ -48,12 +48,14 @@ bool matrix_contains_nan( const Transform3d &m )
double getBoundingRadius(BoundingBox bbox)
{
// FIXME: For eigen3, we can use bbox.diagonal().norm()/2;
double radius = (bbox.max() - bbox.min()).norm() / 2;
return radius; // 0;
}
Vector3d getBoundingCenter(BoundingBox bbox)
{
// FIXME: For eigen3, we can use bbox.center();
Vector3d center = (bbox.min() + bbox.max()) / 2;
return center; // Vector3d(0,0,0);
}