List: discuss@lists.openscad.org
From: Jordan Brown
kinds of modules (was Re: Re: 2D primitives)
Wed, Aug 13, 2025 4:20 PM
Here's a simple example:
module cube_topper(size) {
cube(size);
translate([size/2, size/2, size])
children();
}
This module creates a cube, and puts its children centered on the top of
the cube. You use it like so:
cube_topper(10) sphere(5);
It's a floor wax *and* a dessert topping!