* Fake modules for Rust std lib functions Signed-off-by: Nick Cameron <nrc@ncameron.org> * Include the missing @ in Rust std lib fns Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move revolve and mirror2d to better modules Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use docs from KCL mods for type summaries Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use type docs to describe types from KCL std lib Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
96 KiB
96 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
std::sketch::getOppositeEdge | 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 = 60, length = 10)
|> angledLine(angle = 120, length = 10)
|> line(end = [-10, 0])
|> angledLine(angle = 240, length = 10, tag = $referenceEdge)
|> close()
example = extrude(exampleSketch, length = 5)
|> fillet(radius = 3, tags = [getOppositeEdge(referenceEdge)])