fix warning : enum * float is deprecated

This commit is contained in:
Jane Tournois 2021-08-25 16:44:11 +02:00
parent ee8531d600
commit 1866378491
1 changed files with 3 additions and 1 deletions

View File

@ -2113,8 +2113,10 @@ insert_balls(const Vertex_handle& vp,
curve_index, d_sign) curve_index, d_sign)
<< ")\n"; << ")\n";
#endif #endif
const FT sgn = (d_sign == CGAL::POSITIVE) ? 1.
: (d_sign == CGAL::NEGATIVE ? -1. : 0.);
const Bare_point new_point = const Bare_point new_point =
domain_.construct_point_on_curve(vpp, curve_index, d_sign * d / 2); domain_.construct_point_on_curve(vpp, curve_index, sgn * d / 2);
const int dim = 1; // new_point is on edge const int dim = 1; // new_point is on edge
const Index index = domain_.index_from_curve_index(curve_index); const Index index = domain_.index_from_curve_index(curve_index);
const FT point_weight = CGAL::square(size_(new_point, dim, index)); const FT point_weight = CGAL::square(size_(new_point, dim, index));