21 lines
340 B
Plaintext
21 lines
340 B
Plaintext
![]() |
// This file is used by the import docs.
|
||
|
|
||
|
export fn width = () => {
|
||
|
return 10
|
||
|
}
|
||
|
|
||
|
export fn height = () => {
|
||
|
return 10
|
||
|
}
|
||
|
|
||
|
export fn buildSketch = (plane, offset) => {
|
||
|
w = width()
|
||
|
h = height()
|
||
|
return startSketchOn(plane)
|
||
|
|> startProfileAt(offset, %)
|
||
|
|> line([w, 0], %)
|
||
|
|> line([0, h], %)
|
||
|
|> line([-w, 0], %)
|
||
|
|> close(%)
|
||
|
}
|