
Folks,
The following code snippet is intended to create an
octahedron next to the top half of an octahedron.
Which is exactly what one gets with CGAL (f6).
However, when compiled with OpenCSG (f5) one gets
an octahedron standing next to nothing.
It is as if the intersection went wrong for some
reason.
It happens on the 2011.06.14 release of OpenSCAD.
Thoughts?
Observations?
Criticisms?
Anything?
Dan
module unitOctahedron() polyhedron(
points = [[1,0,0],[1,0,0],[0,1,0],[0,1,0],[0,0,1],[0,0,1]],
triangles = [[0,2,4],[0,5,2],[0,4,3],[0,3,5],[1,4,2],[1,2,5],[1,3,4],
[1,5,3]],
convexity = 1);
module scaleOctahedron(s)
scale([s/sqrt(2),s/sqrt(2),s/sqrt(2)]) unitOctahedron();
translate([10,0,0]) scaleOctahedron(10);
intersection() {
translate([10,0,0]) scaleOctahedron(10);
translate([10,0,10]) cube([20,20,20],center=true);
}
