Fix warnings and compile error

This commit is contained in:
Léo Valque 2025-03-04 11:39:12 +01:00
parent 035652ae82
commit 765aa430a2
6 changed files with 4 additions and 5 deletions

View File

@ -198,7 +198,6 @@ compare_squared_distance(const typename K::Segment_3& s1,
typedef typename K::FT FT; typedef typename K::FT FT;
typedef typename K::Point_3 Point_3; typedef typename K::Point_3 Point_3;
typedef typename K::Vector_3 Vector_3; typedef typename K::Vector_3 Vector_3;
typedef typename K::Line_3 Line_3;
typename K::Construct_vertex_3 vertex = k.construct_vertex_3_object(); typename K::Construct_vertex_3 vertex = k.construct_vertex_3_object();
typename K::Construct_vector_3 cv = k.construct_vector_3_object(); typename K::Construct_vector_3 cv = k.construct_vector_3_object();

View File

@ -220,7 +220,6 @@ compare_squared_distance_disjoint(const typename K::Triangle_3& tr1,
const K& k, const K& k,
const typename K::FT& d2) const typename K::FT& d2)
{ {
typedef typename K::FT FT;
typedef typename K::Segment_3 Segment_3; typedef typename K::Segment_3 Segment_3;
typename K::Construct_vertex_3 vertex = k.construct_vertex_3_object(); typename K::Construct_vertex_3 vertex = k.construct_vertex_3_object();

View File

@ -112,7 +112,7 @@ wdot(const typename K::Point_3 &p,
} }
static double diff_of_products(const double a, const double b, const double c, const double d) static double diff_of_products(const double& a, const double& b, const double& c, const double& d)
{ {
// Kahan method, less numerical error // Kahan method, less numerical error
#if 1 #if 1

View File

@ -764,8 +764,7 @@ int main()
std::cout << "3D Distance tests" << std::endl; std::cout << "3D Distance tests" << std::endl;
CGAL::Random r(1740152576); CGAL::Random r;
// CGAL::Random r;
std::cout << "random seed = " << r.get_seed() << std::endl; std::cout << "random seed = " << r.get_seed() << std::endl;
// @todo Some tests are too difficult for these kernels // @todo Some tests are too difficult for these kernels

View File

@ -19,6 +19,7 @@
#include <CGAL/kernel_basic.h> #include <CGAL/kernel_basic.h>
#include <CGAL/Tetrahedron_3.h> #include <CGAL/Tetrahedron_3.h>
#include <CGAL/Triangle_3.h> #include <CGAL/Triangle_3.h>
#include <CGAL/squared_distance_3.h>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -28,6 +28,7 @@
#include <CGAL/boost/graph/named_params_helper.h> #include <CGAL/boost/graph/named_params_helper.h>
#include <CGAL/Random.h> #include <CGAL/Random.h>
#include <CGAL/use.h> #include <CGAL/use.h>
#include <CGAL/squared_distance_3.h>
#include <boost/graph/graph_traits.hpp> #include <boost/graph/graph_traits.hpp>
#include <variant> #include <variant>