Skip to content

voronoi.scad

pinkfish edited this page Jun 15, 2026 · 1 revision

LibFile: voronoi.scad

This file has all the modules needed to make voronoi tesselations.

To use, add the following lines to the beginning of your file:

include <boardgame_toolkit.scad>

File Contents

Function: VoronoiPoints()

Description:

Generates a set of Voronoi points to use in the system to make the nice voronoi pattern.


Function: NormalizeVector()

Description:

Normalizes the vector to a size of 1, but keeps the relative sizes.


Function/Module: Vornonoi()

Description:

Creates a voronoi pattern to use on lids (and elsewhere).

Arguments:

By Position What it does
width width of the space to fill
length length of the space to fill
thickness thickness of the gaps between the shapes
corner_size how much rounding to use in the corners
cellsize the size of the cells in the space
seed the seed to use for the random number (degault default_voronoi_seed)
allowable how much space to randomize within the cell

Example 1:

Vornonoi() Example 1
include <boardgame_toolkit.scad>
Voronoi(width=100, length=100, thickness=1.5);



Example 2:

Vornonoi() Example 2
include <boardgame_toolkit.scad>
region(Voronoi(width=100, length=100, thickness=1.5));




Clone this wiki locally