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 <map>
|
||||||
|
|
||||||
#include <CGAL/basic.h>
|
#include <CGAL/basic.h>
|
||||||
#include <CGAL/Min_sphere_d.h>
|
|
||||||
#include <CGAL/Optimisation_d_traits_3.h>
|
|
||||||
#include <CGAL/barycenter.h>
|
#include <CGAL/barycenter.h>
|
||||||
#include <CGAL/boost/graph/properties.h>
|
#include <CGAL/boost/graph/properties.h>
|
||||||
#include <CGAL/assertions.h>
|
#include <CGAL/assertions.h>
|
||||||
|
|
@ -357,10 +355,14 @@ Ridge_approximation(const TriangleMesh &p,
|
||||||
points.push_back(get(vpm,v));
|
points.push_back(get(vpm,v));
|
||||||
}
|
}
|
||||||
|
|
||||||
CGAL::Min_sphere_d<CGAL::Optimisation_d_traits_3<Kernel> >
|
Bbox_3 bb = bbox_3(points.begin(), points.end());
|
||||||
min_sphere(points.begin(), points.end());
|
double width = bb.xmax() - bb.xmin();
|
||||||
squared_model_size = min_sphere.squared_radius();
|
double yw = bb.ymax() - bb.ymin();
|
||||||
//maybe better to use CGAL::Min_sphere_of_spheres_d ?? but need to create spheres?
|
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;
|
tag_order = Ridge_order_3;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
Algebraic_foundations
|
Algebraic_foundations
|
||||||
BGL
|
BGL
|
||||||
Bounding_volumes
|
|
||||||
Circulator
|
Circulator
|
||||||
Installation
|
Installation
|
||||||
Interval_support
|
Interval_support
|
||||||
Kernel_23
|
Kernel_23
|
||||||
Modular_arithmetic
|
Modular_arithmetic
|
||||||
Number_types
|
Number_types
|
||||||
Optimisation_basic
|
|
||||||
Principal_component_analysis_LGPL
|
Principal_component_analysis_LGPL
|
||||||
Profiling_tools
|
Profiling_tools
|
||||||
Property_map
|
Property_map
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue