Skip to content

penrose_tiling.scad

pinkfish edited this page Jun 15, 2026 · 4 revisions

LibFile: penrose_tilings.scad

This file has all the modules needed to make a penrose tesslation.

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

include <boardgame_toolkit.scad>

File Contents

Function: PenroseTriangles()

Description:

Subdivides the triangles to the correct size.

Arguments:

By Position What it does
triangles a list of triangle definitions to subdivide.

Function: PenroseTrianglesDivision()

Description:

Recursively call the triangles function to subdivide.

Arguments:

By Position What it does
triangles the initial list of triangles.
division the number of recursive subdivisions to perform.

Function: r2d()

Description:

Convert radians to degrees.


Function/Module: PenroseTiling()

Description:

This makes a penrose tiling based on the nice layout with a different type of spaces.

Arguments:

By Position What it does
width the width of the tiling space
divisions the number of recursive divisions (default 7)
thickness the thickness of the stroke to use (default 1)
base the base divisions of the circle (default 5)

Example 1:

PenroseTiling() Example 1
include <boardgame_toolkit.scad>
PenroseTiling(100, divisions=5, thickness=1, base=5);



Example 2:

PenroseTiling() Example 2
include <boardgame_toolkit.scad>
PenroseTiling(100, divisions=5, thickness=1, base=7);




Clone this wiki locally