From 012d3e6a12204adc78c08e346c98ec7bc87f7455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 23 Jul 2013 18:55:51 +0200 Subject: [PATCH] Primitives: fix Icosphere header. This mess is long overdue. --- src/Primitives/Icosphere.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Primitives/Icosphere.h b/src/Primitives/Icosphere.h index 748c5e52f..220db6bfe 100644 --- a/src/Primitives/Icosphere.h +++ b/src/Primitives/Icosphere.h @@ -68,11 +68,11 @@ template class Icosphere { /** @brief Constructor */ explicit Icosphere() { for(std::size_t i = 0; i != subdivisions; ++i) - MeshTools::subdivide(*indices(), *normals(0), [](const Vector3& a, const Vector3& b) { + MeshTools::subdivide(indices(), normals(0), [](const Vector3& a, const Vector3& b) { return (a+b).normalized(); }); - MeshTools::removeDuplicates(*indices(), *normals(0)); + MeshTools::removeDuplicates(indices(), normals(0)); positions(0)->assign(normals(0)->begin(), normals(0)->end()); } };