#921·openscad

Feature request: Negative space

Author: dmopalmerCreated Aug 24, 2014Updated Sep 28, 2026
LabelsStalled

A complex module might contain both positive and negative space. For example, a motor mount might contain material to hold the motor, a cavity in which the motor fits, and maybe even bolt holes.

If you union such an object to some other object, such as near the surface of a cube, the resulting object would then have the material to hold the motor, a cavity into which the motor fits (even where it penetrates into the cube) and bolt holes into the cube.

Currently, I just make two modules: one of material and one of negative space, and separately keep track of both in the difference() calls.

This feature would probably be easiest to implement once you have the capability for multiple materials: union() {vacuum; material;} gives material (as it is now) but union() {negative_space; material;} gives negative_space


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.