evanw / csg.js

Constructive solid geometry on meshes using BSP trees in JavaScript
http://evanw.github.com/csg.js/
MIT License
1.79k stars 264 forks source link

New geometry type. #4

Closed ANerdyElva closed 12 years ago

ANerdyElva commented 12 years ago

Added a simple new geometry type, a cuboid, follows the same syntax as CSG.cube but options.radius can be an array of 3 values which will be size of the created cuboid.

evanw commented 12 years ago

Thanks! I merged cuboid() with cube() since one extended the other.