> The following OpenSCAD program doesn't work. It should produce a tetrahedron (not regular).
You can only intersect solids, and your polyhedrons are planar.
You cannot use OpenSCAD to build a volume from intersecting planes.
You could build 2D polygons, linear_extrude them and rotate them in place, then do the intersection and you might get what you're looking for.
> I'm trying to intersect 3 cubes, but for some reason, OpenSCAD seems to ignore the first cube in the following intersection.
> The result should be a cube entirely in the 1st octant.
> The intersection of cubes 2 & 3 works fine, but the intersection with cube 1 doesn't work.
Works in OpenCSG mode, but not ing CGAL mode - definitely looks like a bug..
Same behavior in all previous versions of OpenSCAD