openscad / MCAD

OpenSCAD Parametric CAD Library (LGPL 2.1)
http://reprap.org/wiki/MCAD
578 stars 192 forks source link

dev branch: fasteners/threads triggers CGAL error #33

Open rpavlik opened 6 years ago

rpavlik commented 6 years ago

Specifically, if you just load and run fasteners/threads in the 2017/11/12 snapshot (7cb1e93), you'll get these among your errors:

ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_plane.has_on(sv_prev->point()) File: /opt/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 294 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_plane.has_on(sv_prev->point()) File: /opt/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 294 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_plane.has_on(sv_prev->point()) File: /opt/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 294 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_plane.has_on(sv_prev->point()) File: /opt/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 294 
ERROR: CGAL error in CGAL_Nef_polyhedron3(): CGAL ERROR: assertion violation! Expr: ss_plane.has_on(sv_prev->point()) File: /opt/mxe/usr/x86_64-w64-mingw32.static.posix/include/CGAL/Nef_3/polygon_mesh_to_nef_3.h Line: 294 

OpenSCAD issue associated: https://github.com/openscad/openscad/issues/1081

Interestingly it works in 2015.03-2. (Testing on Windows using the official x64 builds)

--- Want to back this issue? **[Post a bounty on it!](https://app.bountysource.com/issues/52860087-dev-branch-fasteners-threads-triggers-cgal-error?utm_campaign=plugin&utm_content=tracker%2F86517&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://app.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F86517&utm_medium=issues&utm_source=github).
kintel commented 6 years ago

I think this is a duplicate of openscad/openscad#2139