[OpenSCAD] F5 works, but F6 gives: ERROR: CGAL error in CGAL_Nef_polyhedron3():

Uwe Schächterle corpsman at corpsman.de
Mon Jan 15 15:05:22 EST 2018


Hello all,

i made a little "thing" (attached below).

If i press F5 i get it rendered with no problem. By pressing F6 i get :

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

i am using OpenSCAD version 2017.12.21

sometimes it will be rendered, but without the polyhedron.

can you help me, what i did wrong ?


/*
 * Thing starts here
 */
translate([0,35,0]) bodenprofil();
bodenprofil();

translate([3+4,0,5+3])cube([6,40,3]);
translate([40-7,0,5+3])cube([6,40,3]);

translate([3+5,18,5+3])cube([4,4,60]);

translate([3+4.25,16,5+3+60])
difference()
{
  cube([5.5,8,7]);
  translate([2,-1,2]) cube([1.5,10,6]);
}

module bodenprofil()
{
translate([0,5,0]) rotate([90,0,0]) linear_extrude(height = 5)
polygon([[0,0],[3,0],[3,5],[7,5],[7,8],[18,8],[18,5],[28,5],[28,8],[39,8],[39,5],[43,5],[43,0],[46,0],[46,11],[0,11]]);
}


polyhedron([
[39-5,0,11],
[43-5,0,11],
[43-5,5,11],
[39-5,5,11],

[12,18,58-5],
[12,18,58],
[12,22,58],
[12,22,58-5]
],
 [
  [0,1,2,3],  // bottom
  [4,5,1,0],  // front
  [7,6,5,4],  // top
  [5,6,2,1],  // right
  [6,7,3,2],  // back
  [7,4,0,3]]
);

polyhedron([
[39-5,0+35,11],
[43-5,0+35,11],
[43-5,5+35,11],
[39-5,5+35,11],

[12,18,58-5],
[12,18,58],
[12,22,58],
[12,22,58-5]
],
 [
  [0,1,2,3],  // bottom
  [4,5,1,0],  // front
  [7,6,5,4],  // top
  [5,6,2,1],  // right
  [6,7,3,2],  // back
  [7,4,0,3]]
);
/*
 * Thing stops here
 */

best regards corpsman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thing_f5.png
Type: image/png
Size: 11352 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20180115/b02a20ba/attachment.png>


More information about the Discuss mailing list