summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/linalg.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/linalg.cc b/src/linalg.cc
index 590e01b..6799055 100644
--- a/src/linalg.cc
+++ b/src/linalg.cc
@@ -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);
}
contact: Jan Huwald // Impressum