csg.js

Source code: http://github.com/evanw/csg.js/
Documentation: http://evanw.github.com/csg.js/docs/

Gourd Test Cases

These tests involve a model that isn't convex.

gourd.union(cyl)
gourd.intersect(cyl)
gourd.subtract(cyl)
cyl.subtract(gourd)

Repeated Plane Test Cases

These tests cover some cases where identical but opposite planes occur in the same solid.

a
b
b.subtract(b).union(a)
a.subtract(b).union(b).subtract(b)
b.inverse().union(a)
b.subtract(b).union(a).subtract(b)