Don't create extra, redundant points in the mesh.

This commit is contained in:
Joseph Lenox 2018-07-10 22:37:44 -05:00 committed by Joseph Lenox
parent 4d6deea6cb
commit 2ed48de491

View File

@ -754,7 +754,7 @@ TriangleMesh::make_cylinder(double r, double h, double fa) {
unsigned id = vertices.size() - 1;
vertices.push_back(Pointf3(sin(0) * r , cos(0) * r, 0));
vertices.push_back(Pointf3(sin(0) * r , cos(0) * r, h));
for (double i = 0; i < 2*PI; i+=angle) {
for (double i = angle; i < 2*PI - angle; i+=angle) {
Pointf3 b(0, r, 0);
Pointf3 t(0, r, h);
b.rotate(i, Pointf3(0,0,0));