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

Invalid polyhedron error with diagonal geometry #47

Open
akakikuumeri opened this issue Mar 17, 2021 · 2 comments
Open

Invalid polyhedron error with diagonal geometry #47

akakikuumeri opened this issue Mar 17, 2021 · 2 comments

Comments

@akakikuumeri
Copy link

I'm trying to create a rectangular burr piece with a diagonal wedge. Some combinations of diagonal geometry components result in the error below.

This renders fine:

["x{components={z-,x+,y-z-,y-x+,y+z-,y+x+}}x"]

But add some voxels around the wedge:

["x{components={z-,x+,y-z-,y-x+,y+z-,y+x+}}x|x.",".x"]

And the following error results:

ERROR: Assertion 'is_3_vector(p)' failed: "Invalid polyhedron: [[7.62, 7.62, -6.91289], [22.1529, 7.62, -6.91289], [22.1529, 7.62, 22.1529], [8.32711, 7.62, 22.1529], [nan, nan, -inf]]" in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-polyhedra.scad, line 79 TRACE: called by 'make_poly', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-polyhedra.scad, line 594. TRACE: called by 'make_beveled_poly_normalized', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-polyhedra.scad, line 405. TRACE: called by 'make_beveled_poly', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 518. TRACE: called by 'burr_piece_component_diag', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 179. TRACE: called by 'if', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 177. TRACE: called by 'if', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 176. TRACE: called by 'for', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 175. TRACE: called by 'union', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 171. TRACE: called by 'difference', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 169. TRACE: called by 'burr_piece_base', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 118. TRACE: called by 'rotate', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 117. TRACE: called by 'translate', in file ../OpenSCAD/libraries/puzzlecad/puzzlecad-burr.scad, line 116.

@pazqo
Copy link

pazqo commented Oct 31, 2021

I'm having the same problem, any workaround?

@MasonHM
Copy link

MasonHM commented Oct 6, 2022

It seems like the problem occurs in the beveling logic, so I'm currently working around it with $burr_bevel = 0;, which obviously won't work for every use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants