Find a way to test for collisions between nut and corresponding bolt.
Idea
Render a nut and bolt combination (example: tests/test.scad). Use “number of volumes” that OpenSCAD shows after rendering:
- 3 volumes: PASS (1 volume nut, 1 volume bolt, 1 volume surroundings)
- 2 volumes: FAIL (collision)
- 1 volume: FAIL (something went terribly wrong)
- More than 3 volumes: FAIL (probably thread did not overlap bolt / nut and remained a separate part)
Problem
Find a way to make OpenSCAD tell us the number of volumes in a programmatic way (we don’t want to open OpenSCAD and hit F6 for hundreds of threads).
Find a way to test for collisions between nut and corresponding bolt.
Idea
Render a nut and bolt combination (example: tests/test.scad). Use “number of volumes” that OpenSCAD shows after rendering:
Problem
Find a way to make OpenSCAD tell us the number of volumes in a programmatic way (we don’t want to open OpenSCAD and hit F6 for hundreds of threads).