18 for(
unsigned int i = 0; i < num_corners; ++i)
20 double a = 2 * M_PI * i / num_corners;
21 double x = sin(
a) * radius;
22 double y = cos(
a) * radius;
29 for(
unsigned int i = 1; i < num_corners - 1; ++i)
31 unsigned int i2 = 2 * i;
41 for(
unsigned int i = 0; i < num_corners; ++i)
43 unsigned int j = (i + 1) % num_corners;
55 double min_z = -height / 2;
56 double max_z = height / 2;
61 for(
unsigned int i = 0; i < points.
size(); ++i)
68 for(
unsigned int i = 1; i < points.
size() - 1; ++i)
80 for(
unsigned int i = 0; i < points.
size(); ++i)
82 int j = (i + 1) % points.
size();