1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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<S>::computeIcosahedron(S radius)
const S x = radius * unitX;
const S z = radius * unitZ;
- std::vector<Vector3> vertices = {{{-x, 0, z},
+ std::vector<Vector3> vertices = {{-x, 0, z},
{x, 0, z},
{-x, 0, -z},
{x, 0, -z},
@@ -86,13 +86,13 @@ Icosphere<S>::computeIcosahedron(S radius)
{z, x, 0},
{-z, x, 0},
{z, -x, 0},
- {-z, -x, 0}}};
+ {-z, -x, 0}};
static std::vector<Triangle> 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);
}
|