Browse Source

Primitives: fixed Icosphere subdivision.

pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
556c714805
  1. 1
      src/Primitives/Icosphere.h

1
src/Primitives/Icosphere.h

@ -64,6 +64,7 @@ template<std::size_t subdivisions> 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));
}

Loading…
Cancel
Save