[OpenSCAD] puzzling behavior

jon jon at jonbondy.com
Sat Jun 4 13:31:37 EDT 2016


A friend demonstrated this to me: is this a known problem? It seems as 
if the implicit union() fails

Jon


module trimod(b, d, y, h){
polyhedron( points = [

[0, 0, 0], //point 0
[b, 0, 0], //point 1
[d, y, 0], //point 2
[0, 0, h], //point 3
[b, 0, h], //point 4
[d, y, h]], //point 5
faces = [
[3,4,5],
[0,3,4,1],
[4,5,2,1],
[0,1,2],
[0,2,5,3],
]
);
}

module ThisIsOK()
     trimod(3,4,6,1);

module ThisFails() {
     // when run with F6 the trimod loses most of its faces
     trimod(3,4,6,1);
     sphere(3);
     }

ThisIsOK();
!ThisFails();





More information about the Discuss mailing list