kcl

segStartY

Compute the starting point of the provided line segment along the 'y' axis.

segStartY(tag: TagIdentifier) -> number

Arguments

NameTypeDescriptionRequired
tagTagIdentifierYes

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)

Rendered example of segStartY 0