13 vertices.push_back(Eigen::Vector3f::Zero());
14 vertices.push_back(Eigen::Vector3f::UnitZ());
16 double step = 2.0 * M_PI / div;
17 for (
int i = 0; i < div; i++) {
18 double rad = step * i;
19 vertices.push_back(Eigen::Vector3f(std::cos(rad), std::sin(rad), 0.0f));
21 int current_index = i + 2;
22 int next_index = ((i + 1) % div) + 2;
25 indices.push_back(current_index);
28 indices.push_back(current_index);