curves2d
2D curves, resampling, curvature analysis, and path operations
| Targets | blender-geometry, blender-gp |
|---|---|
| Version | 0.13.1 (edition 2026) |
| Depends on | math |
| Import | use curves2d or use curves2d (name, …) |
| Source | stdlib/curves2d.bn |
2D Curves and Contours#
morph curves 2d#
Interpolates positions between two curves resampled to matching point counts
geometry graph "morph curves 2d"(
start: Geometry,
end: Geometry,
factor: Float = 0.5 in 0.0..1.0,
points: Int = 128 in 4..4096
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
start | Geometry | ||
end | Geometry | ||
factor | Float | 0.5 | 0.0..1.0 |
points | Int | 128 | 4..4096 |
parallel contour 2d#
Offsets each point along the 2D normal in the XY plane
geometry graph "parallel contour 2d"(curve: Geometry, offset: Float = 0.1) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
offset | Float | 0.1 |
contour noise 2d#
Deforms a 2D contour along its normal using fractal noise
geometry graph "contour noise 2d"(
curve: Geometry,
amplitude: Float = 0.08,
frequency: Float = 2.0 in 0.0..,
octaves: Int = 4 in 1..8,
resolution: Int = 128 in 8..2048
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
amplitude | Float | 0.08 | |
frequency | Float | 2.0 | 0.0.. |
octaves | Int | 4 | 1..8 |
resolution | Int | 128 | 8..2048 |
wave curve 2d#
Displaces a 2D curve sinusoidally along its normal
geometry graph "wave curve 2d"(
curve: Geometry,
amplitude: Float = 0.06,
periods: Float = 8.0,
phase: Float,
resolution: Int = 128 in 8..2048
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
amplitude | Float | 0.06 | |
periods | Float | 8.0 | |
phase | Float | ||
resolution | Int | 128 | 8..2048 |
ribbon 2d#
Generates a flat 2D ribbon along the curve with optional end tapering
geometry graph "ribbon 2d"(
curve: Geometry,
width: Float = 0.15 in 0.0..,
taper: Float in 0.0..1.0
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
width | Float | 0.15 | 0.0.. |
taper | Float | 0.0..1.0 |
arrow 2d#
Generates a flat 2D arrow along the curve with stem and triangular arrowhead
geometry graph "arrow 2d"(
curve: Geometry,
"body width": Float = 0.08 in 0.0..,
"head width": Float = 0.24 in 0.0..,
"head length": Float = 0.2 in 0.01..0.95
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
curve | Geometry | ||
body_width | Float | 0.08 | 0.0.. |
head_width | Float | 0.24 | 0.0.. |
head_length | Float | 0.2 | 0.01..0.95 |
ring 2d#
Generates a flat 2D ring bounded by two radii
geometry graph "ring 2d"(
outer_radius: Float = 1.0 in 0.001..,
inner_radius: Float = 0.6 in 0.0..,
resolution: Int = 64 in 3..512
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
outer_radius | Float | 1.0 | 0.001.. |
inner_radius | Float | 0.6 | 0.0.. |
resolution | Int | 64 | 3..512 |