diff --git a/dart/math/detail/Icosphere-impl.hpp b/dart/math/detail/Icosphere-impl.hpp index 69a25a4..4954a55 100644 --- a/dart/math/detail/Icosphere-impl.hpp +++ b/dart/math/detail/Icosphere-impl.hpp @@ -75,7 +75,7 @@ Icosphere::computeIcosahedron(S radius) const S x = radius * unitX; const S z = radius * unitZ; - std::vector vertices = {{{-x, 0, z}, + std::vector vertices = {{-x, 0, z}, {x, 0, z}, {-x, 0, -z}, {x, 0, -z}, @@ -86,13 +86,13 @@ Icosphere::computeIcosahedron(S radius) {z, x, 0}, {-z, x, 0}, {z, -x, 0}, - {-z, -x, 0}}}; + {-z, -x, 0}}; static std::vector triangles - = {{{0, 4, 1}, {0, 9, 4}, {9, 5, 4}, {4, 5, 8}, {4, 8, 1}, + = {{0, 4, 1}, {0, 9, 4}, {9, 5, 4}, {4, 5, 8}, {4, 8, 1}, {8, 10, 1}, {8, 3, 10}, {5, 3, 8}, {5, 2, 3}, {2, 7, 3}, {7, 10, 3}, {7, 6, 10}, {7, 11, 6}, {11, 0, 6}, {0, 1, 6}, - {6, 1, 10}, {9, 0, 11}, {9, 11, 2}, {9, 2, 5}, {7, 2, 11}}}; + {6, 1, 10}, {9, 0, 11}, {9, 11, 2}, {9, 2, 5}, {7, 2, 11}}; return std::make_pair(vertices, triangles); }