Skip to content

Help with sweepSketch #25

Answered by sgenoud
raydeleu asked this question in Q&A
Jun 11, 2022 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

sweepSketch takes a function with the start plane as a parameter. I though I had written something here, but it looks like I forgot to send.

const main = (
  { Sketcher, sketchRectangle, revolution, sketchCircle, Plane, EdgeFinder },
  {}
) => {
  let p0 = [0, 0];
  let p1 = [50, 100];
  let p2 = [60, -95];
  let p3 = [80, 30];
  let p4 = [100, 25];
  let points = [p1, p2, p3, p4];

  return new Sketcher("XZ")
    .movePointerTo(p0)
    .bezierCurveTo(p4, points)
    .done()
    .sweepSketch((plane, origin) => sketchRectangle(3, 30, { plane, origin }));
};

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@sgenoud
Comment options

@raydeleu
Comment options

@sgenoud
Comment options

@sgenoud
Comment options

@raydeleu
Comment options

Comment options

You must be logged in to vote
1 reply
@raydeleu
Comment options

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