mirror of https://github.com/CGAL/cgal
fixed warning with Vector 3 type
This commit is contained in:
parent
56a0cb15e4
commit
b2861aefa3
|
|
@ -1221,7 +1221,6 @@ bool is_planar_2(
|
|||
typedef typename Traits::FT FT;
|
||||
typedef typename Traits::Point_3 Point_3;
|
||||
typedef typename Traits::Plane_3 Plane_3;
|
||||
typedef typename Traits::Vector_3 Vector_3;
|
||||
typedef typename Traits::Construct_projected_point_3 Projection_3;
|
||||
typedef typename Traits::Compute_squared_distance_3 Squared_distance_3;
|
||||
|
||||
|
|
@ -1264,7 +1263,7 @@ bool is_planar_2(
|
|||
}
|
||||
|
||||
// Here, avg_squared_distance is a little bit more tolerant than avg_distance^2.
|
||||
CGAL_assertion(avg_normal != Vector_3());
|
||||
CGAL_assertion(avg_normal != typename Traits::Vector_3());
|
||||
const Plane_3 plane = Plane_3(centroid, avg_normal);
|
||||
FT avg_squared_distance = FT(0);
|
||||
for (std::size_t i = 0; i < n; ++i) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue