kcl-stdfunctionssegLen

segLenFunction in std::sketch

Compute the length of the provided line segment.

segLen(@tag: TaggedEdge): number(Length)

Arguments

NameTypeDescriptionRequired
tagTaggedEdgeThe line segment being queried by its tag.Yes

Returns

number(Length) - A number.

Examples

exampleSketch = startSketchOn(XZ)
  |> startProfile(at = [0, 0])
  |> angledLine(angle = 60, length = 10, tag = $thing)
  |> tangentialArc(angle = -120deg, radius = 5)
  |> angledLine(angle = -60deg, length = segLen(thing))
  |> close()

example = extrude(exampleSketch, length = 5)

Rendered example of segLen 0

Found a typo?