16 #ifdef NUKLEI_USE_CGAL_DEPRECATED
17 using namespace cgal_convex_hull_types;
22 boost::shared_ptr<Convex_hull_3> CH_p(
new Convex_hull_3(3));
26 Vector3 loc = i->getLoc();
27 CH_p->insert(Point_3(loc.X(), loc.Y(), loc.Z()));
30 if (!CH_p->is_valid())
31 NUKLEI_LOG(
"As it often happens, CGAL says the hull is invalid.");
33 if (deco_.has_key(HULL_KEY)) deco_.erase(HULL_KEY);
34 deco_.insert(HULL_KEY, CH_p);
36 NUKLEI_THROW(
"This function requires CGAL. See http://renaud-detry.net/nuklei/group__install.html");
45 #ifdef NUKLEI_USE_CGAL_DEPRECATED
46 using namespace cgal_convex_hull_types;
48 if (!deco_.has_key(HULL_KEY))
49 NUKLEI_THROW(
"Undefined convex hull. Call buildConvexHull() first.");
50 return deco_.get< boost::shared_ptr<Convex_hull_3> >(HULL_KEY)->bounded_side
51 (Point_3(loc.X(), loc.Y(), loc.Z())) != CGAL::ON_UNBOUNDED_SIDE;
53 NUKLEI_THROW(
"This function requires CGAL. See http://renaud-detry.net/nuklei/group__install.html");