Skip to content

Translate and rotate a Solid #1150

Answered by johnthagen
johnthagen asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't understand the distinction between rotate_x, rotate_y and rotate_z. "Around the Z axis" is what I wanted, but hadn't been framing this correctly in my head.

Changing to rotation line to

solid.rotate_z(math.radians(45.0))

Produced the expected results

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johnthagen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant