diff --git a/packages/modeling/src/primitives/roundedCuboid.js b/packages/modeling/src/primitives/roundedCuboid.js index 2fc5bd656..f6fea3a3a 100644 --- a/packages/modeling/src/primitives/roundedCuboid.js +++ b/packages/modeling/src/primitives/roundedCuboid.js @@ -151,7 +151,7 @@ export const roundedCuboid = (options) => { if (roundRadius > (size[0] - EPS) || roundRadius > (size[1] - EPS) || - roundRadius > (size[2] - EPS)) throw new Error('roundRadius must be smaller then the radius of all dimensions') + roundRadius > (size[2] - EPS)) throw new Error('roundRadius must be smaller than the radius of all dimensions') segments = Math.floor(segments / 4) diff --git a/packages/modeling/src/primitives/roundedCylinder.js b/packages/modeling/src/primitives/roundedCylinder.js index 6e35280a1..294ee3077 100644 --- a/packages/modeling/src/primitives/roundedCylinder.js +++ b/packages/modeling/src/primitives/roundedCylinder.js @@ -38,7 +38,7 @@ export const roundedCylinder = (options) => { if (!isGTE(height, 0)) throw new Error('height must be positive') if (!isGTE(radius, 0)) throw new Error('radius must be positive') if (!isGTE(roundRadius, 0)) throw new Error('roundRadius must be positive') - if (roundRadius > radius) throw new Error('roundRadius must be smaller then the radius') + if (roundRadius > radius) throw new Error('roundRadius must be smaller than the radius') if (!isGTE(segments, 4)) throw new Error('segments must be four or more') // if size is zero return empty geometry diff --git a/packages/modeling/src/primitives/roundedRectangle.js b/packages/modeling/src/primitives/roundedRectangle.js index 46a712774..1042c83fc 100644 --- a/packages/modeling/src/primitives/roundedRectangle.js +++ b/packages/modeling/src/primitives/roundedRectangle.js @@ -45,7 +45,7 @@ export const roundedRectangle = (options) => { size = size.map((v) => v / 2) // convert to radius if (roundRadius > (size[0] - EPS) || - roundRadius > (size[1] - EPS)) throw new Error('roundRadius must be smaller then the radius of all dimensions') + roundRadius > (size[1] - EPS)) throw new Error('roundRadius must be smaller than the radius of all dimensions') const cornerSegments = Math.floor(segments / 4)