mirror of https://github.com/CGAL/cgal
Fix header file names
This commit is contained in:
parent
db255dff0d
commit
611f8f6f56
|
|
@ -21,6 +21,7 @@
|
||||||
#include <CGAL/Interval_nt.h>
|
#include <CGAL/Interval_nt.h>
|
||||||
#include <CGAL/Kernel/Type_mapper.h>
|
#include <CGAL/Kernel/Type_mapper.h>
|
||||||
#include <CGAL/Cartesian_converter.h>
|
#include <CGAL/Cartesian_converter.h>
|
||||||
|
#include <CGAL/Bbox.h>
|
||||||
#include <CGAL/STL_Extension/internal/Has_nested_type_Has_filtered_predicates_tag.h>
|
#include <CGAL/STL_Extension/internal/Has_nested_type_Has_filtered_predicates_tag.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|
@ -44,6 +45,18 @@ double length_of_diagonal(const Bbox_3& bb)
|
||||||
d += square(I(bb.zmax()) - I(bb.zmin()));
|
d += square(I(bb.zmax()) - I(bb.zmin()));
|
||||||
return sqrt(d).sup();
|
return sqrt(d).sup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<unsigned int N, typename T>
|
||||||
|
double length_of_diagonal(const Bbox<N,T>& bb)
|
||||||
|
{
|
||||||
|
using I = Interval_nt<false>;
|
||||||
|
I d = square(I((bb.max)(0)) - I((bb.min)(0)));
|
||||||
|
for(int i = 1; i < bb.dimension(); ++i){
|
||||||
|
d += square(I((bb.max)(i)) - I((bb.min)(i)));
|
||||||
|
}
|
||||||
|
return sqrt(d).sup();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Clean up Curve
|
// TODO: Clean up Curve
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#include <CGAL/Frechet_distance/internal/id.h>
|
#include <CGAL/Frechet_distance/internal/id.h>
|
||||||
#include <CGAL/Interval_nt.h>
|
#include <CGAL/Interval_nt.h>
|
||||||
#include <CGAL/Simple_cartesian.h>
|
#include <CGAL/Simple_cartesian.h>
|
||||||
#include <CGAL/Bbox_d.h>
|
#include <CGAL/Bbox.h>
|
||||||
|
|
||||||
// TODO: is it too restrictive to use vectors by default?
|
// TODO: is it too restrictive to use vectors by default?
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <CGAL/assertion.h>
|
#include <CGAL/assertions.h>
|
||||||
|
|
||||||
namespace CGAL {
|
namespace CGAL {
|
||||||
namespace Impl {
|
namespace Impl {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue