Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collision Test #14

Open
adrianschlatter opened this issue Apr 21, 2019 · 3 comments
Open

Collision Test #14

adrianschlatter opened this issue Apr 21, 2019 · 3 comments
Labels
quality Quality Issues/Enhancements (e.g. Tests)

Comments

@adrianschlatter
Copy link
Owner

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

@adrianschlatter adrianschlatter added the quality Quality Issues/Enhancements (e.g. Tests) label Apr 21, 2019
@nh2
Copy link

nh2 commented Jan 24, 2020

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
Copy link
Owner Author

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

@steve8x8
Copy link

steve8x8 commented Jan 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality Quality Issues/Enhancements (e.g. Tests)
Projects
None yet
Development

No branches or pull requests

3 participants