base-node (.bn) v0.13.1

curves2d

2D curves, resampling, curvature analysis, and path operations

Targetsblender-geometry, blender-gp
Version0.13.1 (edition 2026)
Depends onmath
Importuse curves2d or use curves2d (name, …)
Sourcestdlib/curves2d.bn
curves2d

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
InputTypeDefaultRange
startGeometry
endGeometry
factorFloat0.50.0..1.0
pointsInt1284..4096
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
curveGeometry
offsetFloat0.1
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
curveGeometry
amplitudeFloat0.08
frequencyFloat2.00.0..
octavesInt41..8
resolutionInt1288..2048
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
curveGeometry
amplitudeFloat0.06
periodsFloat8.0
phaseFloat
resolutionInt1288..2048
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
curveGeometry
widthFloat0.150.0..
taperFloat0.0..1.0
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
curveGeometry
body_widthFloat0.080.0..
head_widthFloat0.240.0..
head_lengthFloat0.20.01..0.95
geometry ✓shader ✗compositor ✗

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
InputTypeDefaultRange
outer_radiusFloat1.00.001..
inner_radiusFloat0.60.0..
resolutionInt643..512
geometry ✓shader ✗compositor ✗