Files
modeling-app/rust/kcl-lib/tests/spheres/input.kcl
Ben Crabbe 083bfe6ec2 Only consider staight lines for colinear check when doing a full revolve (#7209)
* Only consider staight lines for colinear check

* Neaten up code and add test

* Sir, a second sphere has hit the unit test

* Update test snapshots

---------

Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev>
2025-05-27 14:44:32 +01:00

26 lines
492 B
Plaintext

diameter = 10
startSketchOn(XY)
|> startProfile(at = [-diameter / 2, 0])
|> xLine(length = diameter)
|> arc(
angleStart = 0.0,
angleEnd = 180.0,
radius = diameter / 2
)
|> close()
|> revolve(axis = X)
startSketchOn(XY)
|> startProfile(at = [0, 0])
|> yLine(length = diameter)
|> arc(
angleStart = 90.0,
angleEnd = 270.0,
radius = diameter / 2
)
|> close()
|> revolve(axis = Y)
|> translate(x = diameter * 1.5)