Skip to content

Commit acbd2a3

Browse files
committed
Fixed bug. Rotation applied around wrong axis.
1 parent b2e2743 commit acbd2a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/mesh/creator/special/VariableCylinderCreator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import mesh.creator.FillType;
1010
import mesh.creator.IMeshCreator;
1111
import mesh.creator.primitives.CircleCreator;
12+
import mesh.modifier.RotateXModifier;
1213

1314
public class VariableCylinderCreator implements IMeshCreator {
1415

@@ -67,7 +68,7 @@ private void capBottom() {
6768
creator.setRadius(radii.get(0));
6869
creator.setVertices(rotationSegments);
6970
Mesh3D bottom = creator.create();
70-
bottom.rotateZ(Mathf.PI);
71+
bottom.apply(new RotateXModifier(Mathf.PI));
7172
bottom.translateY(yCoordinates.get(0));
7273
mesh.append(bottom);
7374
}

0 commit comments

Comments
 (0)