59 lines
85 KiB
Markdown
59 lines
85 KiB
Markdown
---
|
|
title: "getNextAdjacentEdge"
|
|
subtitle: "Function in std::sketch"
|
|
excerpt: "Get the next adjacent edge to the edge given."
|
|
layout: manual
|
|
---
|
|
|
|
Get the next adjacent edge to the edge given.
|
|
|
|
```kcl
|
|
getNextAdjacentEdge(@edge: tag): Edge
|
|
```
|
|
|
|
|
|
|
|
### Arguments
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|------|-------------|----------|
|
|
| `edge` | [`tag`](/docs/kcl-std/types/std-types-tag) | The tag of the edge you want to find the next adjacent edge of. | Yes |
|
|
|
|
### Returns
|
|
|
|
[`Edge`](/docs/kcl-std/types/std-types-Edge) - An edge of a solid.
|
|
|
|
|
|
### Examples
|
|
|
|
```kcl
|
|
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 = [getNextAdjacentEdge(referenceEdge)],
|
|
)
|
|
```
|
|
|
|

|
|
|
|
|