Skip to content

Why does this revolve() fail? #23

Answered by sgenoud
raydeleu asked this question in Q&A
Discussion options

You must be logged in to vote

The reason is that the revolve uses the origin of the sketch for its revolution axis. You need to specify another origin like that:

 sketchCircle(20, {
    plane: "XZ",
    origin: [30, 0, 0],
  }).revolve([0, 0, 1], { origin: [0, 0, 0] });

It actually might be a better default to rotate on [0, 0, 0] always by default.

Replies: 1 comment

Comment options

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