blob: b70ddcf495d59e14b7efcd87d1c2b77b2b179ae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/*
Work around bugs in MSVC compiler with Eigen AlignmentBox
bbox.min and bbox.max will fail with Syntax Errors if placed inside
of cgalpngtest.cc
*/
#include "linalg.h"
Vector3d getBoundingCenter(BoundingBox bbox)
{
Vector3d center = (bbox.min() + bbox.max()) / 2;
return center; // Vector3d(0,0,0);
}
double getBoundingRadius(BoundingBox bbox)
{
double radius = (bbox.max() - bbox.min()).norm() / 2;
return radius; // 0;
}
|