* renames Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> fixups Signed-off-by: Jess Frazelle <github@jessfraz.com> updates Signed-off-by: Jess Frazelle <github@jessfraz.com> udpates Signed-off-by: Jess Frazelle <github@jessfraz.com> fix parse Signed-off-by: Jess Frazelle <github@jessfraz.com> fix typos Signed-off-by: Jess Frazelle <github@jessfraz.com> docs Signed-off-by: Jess Frazelle <github@jessfraz.com> update tests Signed-off-by: Jess Frazelle <github@jessfraz.com> empty * fix; Signed-off-by: Jess Frazelle <github@jessfraz.com> * new Signed-off-by: Jess Frazelle <github@jessfraz.com> * add the types pages Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fixes Signed-off-by: Jess Frazelle <github@jessfraz.com> * Look at this (photo)Graph *in the voice of Nickelback* * empty * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
87 lines
119 KiB
Markdown
87 lines
119 KiB
Markdown
---
|
|
title: "fillet"
|
|
excerpt: "Blend a transitional edge along a tagged path, smoothing the sharp edge."
|
|
layout: manual
|
|
---
|
|
|
|
Blend a transitional edge along a tagged path, smoothing the sharp edge.
|
|
|
|
Fillet is similar in function and use to a chamfer, except a chamfer will cut a sharp transition along an edge while fillet will smoothly blend the transition.
|
|
|
|
```js
|
|
fillet(data: FilletData, solid: Solid, tag?: TagDeclarator) -> Solid
|
|
```
|
|
|
|
|
|
### Arguments
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|------|-------------|----------|
|
|
| `data` | [`FilletData`](/docs/kcl/types/FilletData) | Data for fillets. | Yes |
|
|
| `solid` | [`Solid`](/docs/kcl/types/Solid) | An solid is a collection of extrude surfaces. | Yes |
|
|
| `tag` | [`TagDeclarator`](/docs/kcl/types#tag-declaration) | | No |
|
|
|
|
### Returns
|
|
|
|
[`Solid`](/docs/kcl/types/Solid) - An solid is a collection of extrude surfaces.
|
|
|
|
|
|
### Examples
|
|
|
|
```js
|
|
const width = 20
|
|
const length = 10
|
|
const thickness = 1
|
|
const filletRadius = 2
|
|
|
|
const mountingPlateSketch = startSketchOn("XY")
|
|
|> startProfileAt([-width / 2, -length / 2], %)
|
|
|> lineTo([width / 2, -length / 2], %, $edge1)
|
|
|> lineTo([width / 2, length / 2], %, $edge2)
|
|
|> lineTo([-width / 2, length / 2], %, $edge3)
|
|
|> close(%, $edge4)
|
|
|
|
const mountingPlate = extrude(thickness, mountingPlateSketch)
|
|
|> fillet({
|
|
radius: filletRadius,
|
|
tags: [
|
|
getNextAdjacentEdge(edge1),
|
|
getNextAdjacentEdge(edge2),
|
|
getNextAdjacentEdge(edge3),
|
|
getNextAdjacentEdge(edge4)
|
|
]
|
|
}, %)
|
|
```
|
|
|
|

|
|
|
|
```js
|
|
const width = 20
|
|
const length = 10
|
|
const thickness = 1
|
|
const filletRadius = 1
|
|
|
|
const mountingPlateSketch = startSketchOn("XY")
|
|
|> startProfileAt([-width / 2, -length / 2], %)
|
|
|> lineTo([width / 2, -length / 2], %, $edge1)
|
|
|> lineTo([width / 2, length / 2], %, $edge2)
|
|
|> lineTo([-width / 2, length / 2], %, $edge3)
|
|
|> close(%, $edge4)
|
|
|
|
const mountingPlate = extrude(thickness, mountingPlateSketch)
|
|
|> fillet({
|
|
radius: filletRadius,
|
|
tolerance: 0.000001,
|
|
tags: [
|
|
getNextAdjacentEdge(edge1),
|
|
getNextAdjacentEdge(edge2),
|
|
getNextAdjacentEdge(edge3),
|
|
getNextAdjacentEdge(edge4)
|
|
]
|
|
}, %)
|
|
```
|
|
|
|

|
|
|
|
|