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