KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
367 stars 30 forks source link

Sketches from pattern*2d are extrudable, but the resulting ExtrudeGroups can't be operated on #3135

Open dcl opened 2 months ago

dcl commented 2 months ago

This is also a bit of a cryptic KCL error.

Say we want to create a few cylinders and shell them:

let x = startSketchOn("XY")
  |> circle([0, 0], 5, %)
  |> patternLinear2d({
    axis: [1, 1],
    distance: 10,
    repetitions: 3.5,
  }, %)
  |> extrude(3, %)
  |> shell({
    faces: ["end"],
    thickness: 2,
  }, %)

This creates the intended five cylinders, but the shell() fails with an error of Argument at index 1 was supposed to be type alloc::boxed::Box<kcl_lib::executor::ExtrudeGroup> but wasn't.

This is in v0.24.4

jessfraz commented 2 months ago

I think patterning after the shell operation, on a 3d would work as a work around