We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d41072d commit 6d2a389Copy full SHA for 6d2a389
Shape_detection/include/CGAL/Shape_detection/Region_growing/internal/fitting.h
@@ -61,7 +61,7 @@ bool circle_fit (const PointRange& points,
61
= { FT(0), FT(0), FT(0), FT(0), FT(0),
62
FT(0), FT(0), FT(0), FT(0), FT(0) };
63
64
- A[0] = points.size();
+ A[0] = static_cast<FT>(points.size());
65
for (const Point_2& p : points)
66
{
67
FT x = p.x() - bbox.xmin();
@@ -126,7 +126,7 @@ bool sphere_fit (const PointRange& points,
126
FT(0), FT(0), FT(0), FT(0), FT(0),
127
128
129
130
for (const Point_3& p : points)
131
132
@@ -228,7 +228,7 @@ bool cylinder_fit (const PointRange& points,
228
Line_3 line (point, axis);
229
point = line.projection(ref);
230
231
- point_on_axis = barycenter (point_on_axis, nb, point, 1);
+ point_on_axis = barycenter (point_on_axis, static_cast<FT>(nb), point, FT(1));
232
233
radius += abs(radius);
234
0 commit comments