reuse coordinates for last ring of rotate_extrude

527olive
Marius Kintel 2013-12-23 01:13:52 -05:00
parent 0f6e5860e8
commit c9366d1dcb
1 changed files with 2 additions and 2 deletions

View File

@ -836,8 +836,8 @@ static Geometry *rotatePolygon(const RotateExtrudeNode &node, const Polygon2d &p
rings[1].reserve(o.size());
fill_ring(rings[0], o, -M_PI/2); // first ring
for (int j = 0; j <= fragments; j++) {
double a = ((j+1)*2*M_PI) / fragments - M_PI/2; // start on the X axis
for (int j = 0; j < fragments; j++) {
double a = ((j+1)%fragments*2*M_PI) / fragments - M_PI/2; // start on the X axis
fill_ring(rings[(j+1)%2], o, a);
for (size_t i=0;i<o.size();i++) {