The Java CAD system implements JCSG and gives you the ability to create CAD objects using Java. Here is a simple shape of a cube with a sphere subtracted from it.

Check out the In Depth JavaCAD Tutorial

BowlerStudio Screen Cap

Clojure can be used as a cleaner syntax for CAD