* Automatic fixing of deprecations and use non-quoted default planes by default Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
30 lines
938 B
Plaintext
30 lines
938 B
Plaintext
// create a sketch with name sketch000
|
|
const sketch000 = startSketchOn(XY)
|
|
|> startProfileAt([0.0, 0.0], %)
|
|
|> line(end = [1.0, 1.0], tag = $line000)
|
|
|> line(end = [0.0, -1.0], tag = $line001)
|
|
|> line(end = [-1.0, 0.0], tag = $line002)
|
|
|
|
// create an extrusion with name extrude000
|
|
const extrude000 = extrude(sketch000, length = 1.0)
|
|
|
|
// define a plane with name plane005
|
|
const plane005 = {
|
|
plane: {
|
|
origin: [0.0, 0.0, 1.0],
|
|
xAxis: [0.707107, 0.707107, 0.0],
|
|
yAxis: [-0.0, 0.0, 1.0],
|
|
zAxis: [0.707107, -0.707107, 0.0]
|
|
}
|
|
}
|
|
|
|
// create a sketch with name sketch001
|
|
const sketch001 = startSketchOn(plane005)
|
|
|> startProfileAt([0.100000, 0.250000], %)
|
|
|> line(end = [0.075545, 0.494260], tag = $line003)
|
|
|> line(end = [0.741390, -0.113317], tag = $line004)
|
|
|> line(end = [-0.816935, -0.380943], tag = $line005)
|
|
|
|
// create an extrusion with name extrude001
|
|
const extrude001 = extrude(sketch001, length = 1.0)
|