Files
modeling-app/docs/kcl-std/getOppositeEdge.md
Nick Cameron 7b7d587141 tests fixups
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-05-16 12:51:08 +12:00

97 KiB

title, subtitle, excerpt, layout
title subtitle excerpt layout
getOppositeEdge Function in std::sketch Get the opposite edge to the edge given. manual

Get the opposite edge to the edge given.

getOppositeEdge(@edge: TagIdentifier): Uuid

Arguments

Name Type Description Required
edge TagIdentifier The tag of the edge you want to find the opposite edge of. Yes

Returns

Uuid

Examples

exampleSketch = startSketchOn(XZ)
  |> startProfile(at = [0, 0])
  |> line(end = [10, 0])
  |> angledLine(angle = 60deg, length = 10)
  |> angledLine(angle = 120deg, length = 10)
  |> line(end = [-10, 0])
  |> angledLine(angle = 240deg, length = 10, tag = $referenceEdge)
  |> close()

example = extrude(exampleSketch, length = 5)
  |> fillet(radius = 3, tags = [getOppositeEdge(referenceEdge)])

Rendered example of getOppositeEdge 0