2025-03-20 11:06:27 +13:00
|
|
|
---
|
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
|
|
description: Result of unparsing function_sketch_with_position.kcl
|
|
|
|
---
|
|
|
|
fn box(p, h, l, w) {
|
2025-03-21 22:39:12 +13:00
|
|
|
myBox = startSketchOn(XY)
|
2025-04-25 16:01:35 -05:00
|
|
|
|> startProfile(at = p)
|
2025-03-20 11:06:27 +13:00
|
|
|
|> line(end = [0, l])
|
|
|
|
|> line(end = [w, 0])
|
|
|
|
|> line(end = [0, -l])
|
|
|
|
|> close(%)
|
|
|
|
|> extrude(length = h)
|
|
|
|
|
|
|
|
return myBox
|
|
|
|
}
|
|
|
|
|
2025-05-01 11:36:51 -05:00
|
|
|
thing = box(
|
|
|
|
p = [0, 0],
|
|
|
|
h = 3,
|
|
|
|
l = 6,
|
|
|
|
w = 10,
|
|
|
|
)
|