diff --git a/src/Primitives/Icosphere.h b/src/Primitives/Icosphere.h index 9377eb68e..4f24331d6 100644 --- a/src/Primitives/Icosphere.h +++ b/src/Primitives/Icosphere.h @@ -64,6 +64,7 @@ template class Icosphere { }); MeshTools::clean(*indices(), *normals(0)); + positions(0)->clear(); positions(0)->reserve(normals(0)->size()); for(auto i: *normals(0)) positions(0)->push_back(Point3D(i)); }