Adds new stdlib functions segStart, segStartX, segStartY, segEnd Part of <https://github.com/KittyCAD/modeling-app/issues/4382>
94 KiB
94 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
segStartY | Compute the starting point of the provided line segment along the 'y' axis. | manual |
Compute the starting point of the provided line segment along the 'y' axis.
segStartY(tag: TagIdentifier) -> number
Arguments
Name | Type | Description | Required |
---|---|---|---|
tag |
TagIdentifier |
Yes |
Returns
number
Examples
exampleSketch = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> line([20, 0], %)
|> line([0, 3], %, $thing)
|> line([-10, 0], %)
|> line([0, 20 - segStartY(thing)], %)
|> line([-10, 0], %)
|> close(%)
example = extrude(5, exampleSketch)