* Automatic fixing of deprecations and use non-quoted default planes by default Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
		
			
				
	
	
		
			55 lines
		
	
	
		
			188 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			188 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: "getCommonEdge"
 | 
						|
excerpt: "Get the shared edge between two faces."
 | 
						|
layout: manual
 | 
						|
---
 | 
						|
 | 
						|
Get the shared edge between two faces.
 | 
						|
 | 
						|
 | 
						|
 | 
						|
```js
 | 
						|
getCommonEdge(faces: [TagIdentifier]): Uuid
 | 
						|
```
 | 
						|
 | 
						|
 | 
						|
### Arguments
 | 
						|
 | 
						|
| Name | Type | Description | Required |
 | 
						|
|----------|------|-------------|----------|
 | 
						|
| `faces` | `[TagIdentifier]` | The tags of the faces you want to find the common edge between | Yes |
 | 
						|
 | 
						|
### Returns
 | 
						|
 | 
						|
`Uuid`
 | 
						|
 | 
						|
 | 
						|
### Examples
 | 
						|
 | 
						|
```js
 | 
						|
// Get an edge shared between two faces, created after a chamfer.
 | 
						|
 | 
						|
 | 
						|
scale = 20
 | 
						|
part001 = startSketchOn(XY)
 | 
						|
  |> startProfileAt([0, 0], %)
 | 
						|
  |> line(end = [0, scale])
 | 
						|
  |> line(end = [scale, 0])
 | 
						|
  |> line(end = [0, -scale])
 | 
						|
  |> close(tag = $line0)
 | 
						|
  |> extrude(length = 20, tagEnd = $end0)
 | 
						|
  // We tag the chamfer to reference it later.
 | 
						|
  |> chamfer(length = 10, tags = [getOppositeEdge(line0)], tag = $chamfer0)
 | 
						|
 | 
						|
// Get the shared edge between the chamfer and the extrusion.
 | 
						|
commonEdge = getCommonEdge(faces = [chamfer0, end0])
 | 
						|
 | 
						|
// Chamfer the shared edge.
 | 
						|
// TODO: uncomment this when ssi for fillets lands
 | 
						|
// chamfer(part001, length = 5, tags = [commonEdge])
 | 
						|
```
 | 
						|
 | 
						|

 | 
						|
 | 
						|
 |