evanw/csg.js — Issue #1: There is stuff still left in the middle.
Author: treeform
Created: 2011-12-06 23:13:33+00:00
State: open

var a = CSG.cube();
var b = CSG.sphere({ radius: .4, stacks: 12 });
var c = CSG.cylinder({ radius: 0.9, start: [-1, 0, 0], end: [1, 0, 0] });
var d = CSG.cylinder({ radius: 0.3, start: [0, -1, 0], end: [0, 1, 0] });
var e = CSG.cylinder({ radius: 0.3, start: [0, 0, -1], end: [0, 0, 1] });
return a.subtract(b).subtract(c).subtract(d).subtract(e);