patterns2d
2D procedural patterns, tilings, grids, radial arrays, and geometric motifs
| Targets | blender-geometry, blender-gp |
|---|---|
| Version | 0.13.1 (edition 2026) |
| Depends on | math |
| Import | use patterns2d or use patterns2d (name, …) |
| Source | stdlib/patterns2d.bn |
hexagonal grid 2d#
Regular staggered hexagonal tiling in the XY plane, with cell mesh and centers
geometry graph "hexagonal grid 2d"(
columns: Int = 8 in 1..256,
rows: Int = 8 in 1..256,
radius: Float = 0.5 in 0.001..,
margin: Float = 0.0 in 0.0..0.95
) -> (Mesh: Geometry, Centers: Geometry)
| Input | Type | Default | Range |
|---|---|---|---|
columns | Int | 8 | 1..256 |
rows | Int | 8 | 1..256 |
radius | Float | 0.5 | 0.001.. |
margin | Float | 0.0 | 0.0..0.95 |
triangular grid 2d#
Regular equilateral triangle tiling in the XY plane
geometry graph "triangular grid 2d"(
columns: Int = 8 in 1..256,
rows: Int = 8 in 1..256,
side: Float = 0.5 in 0.001..
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
columns | Int | 8 | 1..256 |
rows | Int | 8 | 1..256 |
side | Float | 0.5 | 0.001.. |
phyllotaxis spiral 2d#
Sunflower disk distribution using golden angle and radial factor
geometry graph "phyllotaxis spiral 2d"(
count: Int = 200 in 1..100000,
radius: Float = 1.0 in 0.001..
) -> (Points: Geometry, Factor: Float)
| Input | Type | Default | Range |
|---|---|---|---|
count | Int | 200 | 1..100000 |
radius | Float | 1.0 | 0.001.. |
jitter points 2d#
2D grid perturbed by stratified R2 sequence sampling for clump-free distribution
geometry graph "jitter points 2d"(
columns: Int = 10 in 1..256,
rows: Int = 10 in 1..256,
size: Vector = (2.0, 2.0, 0.0),
jitter: Float = 0.8 in 0.0..1.0
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
columns | Int | 10 | 1..256 |
rows | Int | 10 | 1..256 |
size | Vector | (2.0, 2.0, 0.0) | |
jitter | Float | 0.8 | 0.0..1.0 |
hatching 2d#
Regular array of parallel or crossed lines oriented by angle
geometry graph "hatching 2d"(
width: Float = 2.0 in 0.01..,
height: Float = 2.0 in 0.01..,
lines: Int = 24 in 2..1024,
angle: Float = 0.785398,
crossed: Bool = false
) -> Geometry
| Input | Type | Default | Range |
|---|---|---|---|
width | Float | 2.0 | 0.01.. |
height | Float | 2.0 | 0.01.. |
lines | Int | 24 | 2..1024 |
angle | Float | 0.785398 | |
crossed | Bool | false |