diff --git a/src/geometry/Vertices.js b/src/geometry/Vertices.js index 1dd769f..3b484b2 100644 --- a/src/geometry/Vertices.js +++ b/src/geometry/Vertices.js @@ -268,10 +268,11 @@ var Common = require('../core/Common'); * @param {number} qualityMax */ Vertices.chamfer = function(vertices, radius, quality, qualityMin, qualityMax) { - radius = radius || [8]; - - if (!radius.length) + if (typeof radius === 'number') { radius = [radius]; + } else { + radius = radius || [8]; + } // quality defaults to -1, which is auto quality = (typeof quality !== 'undefined') ? quality : -1;