adrianschlatter / threadlib

thread library for OpenSCAD
BSD 3-Clause "New" or "Revised" License
351 stars 34 forks source link

Collision Test #14

Open adrianschlatter opened 5 years ago

adrianschlatter commented 5 years ago

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).

nh2 commented 4 years ago

You could use the openscad command line application (e.g. openscad -o output.stl myfile.scad), which outputs messages to stderr, and grep for the result.

adrianschlatter commented 4 years ago

Unfortunately, it does not print the number of volumes. See discussion here.

steve8x8 commented 8 months ago

Since the forum has been closed and archived, here's the thread @adrianschlatter refers to: https://lists.openscad.org/empathy/thread/W3KYKIXDZDD2VQJUIZEKGBE6L3UTR5ZB