diff --git a/src/algorithm/buffer3D.cpp b/src/algorithm/buffer3D.cpp index 1370594e..3265f415 100644 --- a/src/algorithm/buffer3D.cpp +++ b/src/algorithm/buffer3D.cpp @@ -108,7 +108,6 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr { typedef CGAL::Nef_polyhedron_3 Nef_polyhedron; Nef_polyhedron result; - bool is_first = true; // Add a sphere at the first point of the line if (!_inputPoints.empty()) { @@ -128,8 +127,7 @@ Buffer3D::computeCylSphereBuffer() const -> std::unique_ptr start_sphere.generatePolyhedron(); Nef_polyhedron start_sphere_nef(start_sphere_poly); - result = start_sphere_nef; - is_first = false; + result = start_sphere_nef; } // Create a cylinder and spheres for each segment of the line