Browse Source

Primitives: fixed compilation error.

Caused by recent change of Point*D constructor to explicit.
pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
f2599778f3
  1. 3
      src/Primitives/Icosphere.h

3
src/Primitives/Icosphere.h

@ -64,7 +64,8 @@ template<std::size_t subdivisions> class Icosphere {
}); });
MeshTools::clean(*indices(), *normals(0)); 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));
} }
}; };

Loading…
Cancel
Save