Compute the length of the provided line segment.
segLen(@tag: TaggedEdge): number(Length)
Arguments
Name | Type | Description | Required |
---|---|---|---|
tag | TaggedEdge | The 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)