Browse Source

Primitives: use non-fuzzy duplicate removal in icosphere.

Now that it actually works properly, it ... works properly.
pull/449/head
Vladimír Vondruš 6 years ago
parent
commit
51ae59ddc1
  1. 4
      src/Magnum/Primitives/Icosphere.cpp

4
src/Magnum/Primitives/Icosphere.cpp

@ -116,9 +116,9 @@ Trade::MeshData icosphereSolid(const UnsignedInt subdivisions) {
/** @todo i need arrayShrinkAndGiveUpMemoryIfItDoesntCauseRealloc() */
Containers::arrayResize<Trade::ArrayAllocator>(vertexData,
MeshTools::removeDuplicatesFuzzyIndexedInPlace(
MeshTools::removeDuplicatesIndexedInPlace(
Containers::stridedArrayView(indices),
Containers::arrayCast<2, Float>(positions))*sizeof(Vertex));
Containers::arrayCast<2, char>(positions))*sizeof(Vertex));
}
/* Build up the views again with correct size, fill the normals */

Loading…
Cancel
Save