summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-12 01:11:33 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-12 01:11:33 (GMT)
commit14c45da1f3544d6f0270a0ea6ba573fc06cf2127 (patch)
tree7ec8ebaa906b556393f6fc1a0df3c20ad88e7930
parent76f184c50b73e7006800235b78c83b01fa399637 (diff)
parentd06d0e323eed74277e079564edcaa0f0622242cd (diff)
Merge branch 'issue11_2' of github.com:openscad/openscad into issue11_2
-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