KittyCAD / modeling-app

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

[BUG]: Weird behavior when 2D circular patterning a small arc #4102

Open nicboone8 opened 2 weeks ago

nicboone8 commented 2 weeks ago

Describe the bug

2D circular patterning of a small angle Arc and an angleStart below 60 degrees throws "Internal engine error on request". Image Image Image Image

Steps to Reproduce

const sketch001 = startSketchOn('XY') |> startProfileAt([2, 1], %) |> arc({ angleStart: 0, angleEnd: 60, radius: 1 }, %) |> close(%) |> patternCircular2d({ center: [0, 0], repetitions: 5, arcDegrees: 360, rotateDuplicates: true }, %)

const extrude001 = extrude(0.1, sketch001)

Expected Behavior

The circular pattern seems to work fine otherwise.

I have also noticed that defining an arc based on a desired start and end angle sometimes gives an unexpected section of the pie, which may be related to this bug

Screenshots and Recordings

No response

Desktop OS

Win11

Browser

Chrome

Version

v0.25.5

Additional Context

No response

JordanNoone commented 2 weeks ago

simplified the reproduce steps a little bit. odd behavior as you change the arc angles / # of sketch elements. always seems to reproduce in/around the 4th quadrant.

const sketch001 = startSketchOn('XY')
|> startProfileAt([1, 0], %)
|> arc({
angleStart: 30,
angleEnd: 50,
radius: 1
}, %)

|> patternCircular2d({
center: [0, 0],
repetitions: 100,
arcDegrees: 360,
rotateDuplicates: true
}, %)

Image