mirror of https://github.com/CGAL/cgal
fix warning : enum * float is deprecated
This commit is contained in:
parent
ee8531d600
commit
1866378491
|
|
@ -2113,8 +2113,10 @@ insert_balls(const Vertex_handle& vp,
|
|||
curve_index, d_sign)
|
||||
<< ")\n";
|
||||
#endif
|
||||
const FT sgn = (d_sign == CGAL::POSITIVE) ? 1.
|
||||
: (d_sign == CGAL::NEGATIVE ? -1. : 0.);
|
||||
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 Index index = domain_.index_from_curve_index(curve_index);
|
||||
const FT point_weight = CGAL::square(size_(new_point, dim, index));
|
||||
|
|
|
|||
Loading…
Reference in New Issue