86 KiB
86 KiB
title, subtitle, excerpt, layout
title | subtitle | excerpt | layout |
---|---|---|---|
segLen | Function in std::sketch | Compute the length of the provided line segment. | manual |
Compute the length of the provided line segment.
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)
Arguments
Name | Type | Description | Required |
---|---|---|---|
tag |
TaggedEdge |
The line segment being queried by its tag. | Yes |
Returns
number(Length)
- A number.
Function signature
segLen(@tag: TaggedEdge): number(Length)
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)