mirror of https://github.com/CGAL/cgal
Ridges_3: Remove dependency on Bounding_volumes
This commit is contained in:
parent
578e2fb606
commit
07f9b10b8a
|
|
@ -28,8 +28,6 @@
|
|||
#include <map>
|
||||
|
||||
#include <CGAL/basic.h>
|
||||
#include <CGAL/Min_sphere_d.h>
|
||||
#include <CGAL/Optimisation_d_traits_3.h>
|
||||
#include <CGAL/barycenter.h>
|
||||
#include <CGAL/boost/graph/properties.h>
|
||||
#include <CGAL/assertions.h>
|
||||
|
|
@ -357,10 +355,14 @@ Ridge_approximation(const TriangleMesh &p,
|
|||
points.push_back(get(vpm,v));
|
||||
}
|
||||
|
||||
CGAL::Min_sphere_d<CGAL::Optimisation_d_traits_3<Kernel> >
|
||||
min_sphere(points.begin(), points.end());
|
||||
squared_model_size = min_sphere.squared_radius();
|
||||
//maybe better to use CGAL::Min_sphere_of_spheres_d ?? but need to create spheres?
|
||||
Bbox_3 bb = bbox_3(points.begin(), points.end());
|
||||
double width = bb.xmax() - bb.xmin();
|
||||
double yw = bb.ymax() - bb.ymin();
|
||||
width = (std::max)(width,yw);
|
||||
double zw = bb.zmax() - bb.zmin();
|
||||
width = (std::max)(width,zw);
|
||||
|
||||
squared_model_size = (width*width)/4.0 ;
|
||||
|
||||
tag_order = Ridge_order_3;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,13 +1,11 @@
|
|||
Algebraic_foundations
|
||||
BGL
|
||||
Bounding_volumes
|
||||
Circulator
|
||||
Installation
|
||||
Interval_support
|
||||
Kernel_23
|
||||
Modular_arithmetic
|
||||
Number_types
|
||||
Optimisation_basic
|
||||
Principal_component_analysis_LGPL
|
||||
Profiling_tools
|
||||
Property_map
|
||||
|
|
|
|||
Loading…
Reference in New Issue