Skip to content

Commit

Permalink
fix(typo): fix typo in rounded error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nmattia authored Mar 19, 2024
1 parent 9582d18 commit 8870b43
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedCuboid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedCylinder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/modeling/src/primitives/roundedRectangle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8870b43

Please sign in to comment.