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