Skip to content

Commit c581efa

Browse files
committed
kept the cube() function
1 parent b61f191 commit c581efa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

csg.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,16 @@ CSG.cube = function(options) {
193193
};
194194

195195
// Construct an axis-aligned solid cuboid. Optional parameters are `center` and
196-
// `radius`, which default to `[0, 0, 0]` and `[1, 1, 1]`.
196+
// `radius`, which default to `[0, 0, 0]` and `[1, 1, 1]`. The radius can be
197+
// specified using a single number or a list of three numbers, one for each axis.
197198
//
198199
// Example code:
199200
//
200201
// var cube = CSG.cube({
201202
// center: [0, 0, 0],
202203
// radius: 1
203204
// });
204-
CSG.cuboid = function(options) {
205+
CSG.cube = function(options) {
205206
options = options || {};
206207
var c = new CSG.Vector(options.center || [0, 0, 0]);
207208
var r = ( !options.radius ) ?

0 commit comments

Comments
 (0)