fillet2d
Fillets, chamfers, and bevels for 2D polygonal curves and corners
| Targets | blender-geometry, blender-gp |
|---|---|
| Version | 0.13.1 (edition 2026) |
| Depends on | math |
| Import | use fillet2d or use fillet2d (name, …) |
| Source | stdlib/fillet2d.bn |
2D Fillets, Chamfers & Bevels#
fillet corner#
Analytically computes circular arc fillet tangent points (p1, p2) and circle center for a 2D corner
geometry graph "fillet corner"(
p_prev: Vector,
p: Vector,
p_next: Vector,
radius: Float = 0.2 in 0.0..
) -> (p1: Vector, p2: Vector, center: Vector)
| Input | Type | Default | Range |
|---|---|---|---|
p_prev | Vector | ||
p | Vector | ||
p_next | Vector | ||
radius | Float | 0.2 | 0.0.. |
fillet polygon#
Rounds sharp corners of a 2D polygonal curve with constant or attribute-driven fillet radius
geometry graph "fillet polygon"(
polygon: Geometry,
radius: Float = 0.2 in 0.0..,
segments: Int = 4 in 1..64
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
polygon | Geometry | ||
radius | Float | 0.2 | 0.0.. |
segments | Int | 4 | 1..64 |
chamfer polygon#
Cuts sharp corners of a 2D polygon with straight chamfers
geometry graph "chamfer polygon"(polygon: Geometry, distance: Float = 0.1 in 0.0..) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
polygon | Geometry | ||
distance | Float | 0.1 | 0.0.. |
fillet bezier handles#
Smooths sharp kink angles along a 2D curve by introducing parametric rounding arcs
geometry graph "fillet bezier handles"(
curve: Geometry,
radius: Float = 0.1 in 0.0..,
threshold_angle: Float = 0.5 in 0.0..3.14159
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
radius | Float | 0.1 | 0.0.. |
threshold_angle | Float | 0.5 | 0.0..3.14159 |