From dcfe4262c519fb750702564309b790cda5b1c090 Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Fri, 11 Jun 2021 20:39:01 +0100 Subject: [PATCH] Fixed typos. --- utils/core/bom.scad | 2 +- utils/core/clip.scad | 2 +- utils/core/polyholes.scad | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/core/bom.scad b/utils/core/bom.scad index 411fe27..2ddacdb 100644 --- a/utils/core/bom.scad +++ b/utils/core/bom.scad @@ -29,7 +29,7 @@ //! This is to prevent the global BOM page becoming too wide in large projects by having it include just the major assemblies. //! //! The example below shows how to define a vitamin and incorporate it into an assembly with sub-assemblies and make an exploded view. -//! The resulting flat BOM is shown but heirachical BOMs are also generated for real projects. +//! The resulting flat BOM is shown but hierarchical BOMs are also generated for real projects. //! //! If the code to make an STL or DXF is made a child of the `stl()` or `dxf()` module then the STL or DXF will be used in the assembly views generated by `views.py` instead of generating //! it with code. diff --git a/utils/core/clip.scad b/utils/core/clip.scad index 1b526d2..e969736 100644 --- a/utils/core/clip.scad +++ b/utils/core/clip.scad @@ -18,7 +18,7 @@ // // -//! Construct arbirarily large box to partition 3D space and clip objects, useful for creating cross sections to see the inside when debugging. +//! Construct arbitrarily large box to partition 3D space and clip objects, useful for creating cross sections to see the inside when debugging. //! //! Original version by Doug Moen on the OpenSCAD forum // diff --git a/utils/core/polyholes.scad b/utils/core/polyholes.scad index 6370b34..c5e4c5e 100644 --- a/utils/core/polyholes.scad +++ b/utils/core/polyholes.scad @@ -28,12 +28,12 @@ //! large increase in the number of facets. //! When set to 1 the polygons alternate each layer, when set higher the rotation takes `twist + 1` layers to repeat. //! A small additional rotation is added to make the polygon rotate one more side over the length of the hole to make it appear round when -//! veiwed end on. +//! viewed end on. //! //! When `twist` is set the resulting cylinder is extended by `eps` at each end so that the exact length of the hole can be used without //! leaving a scar on either surface. // -function sides(r, n = undef) = is_undef(n) ? max(round(4 * r), 3) : n ? max(n, 3) : r2sides(r); //! Optimium number of sides for specified radius +function sides(r, n = undef) = is_undef(n) ? max(round(4 * r), 3) : n ? max(n, 3) : r2sides(r); //! Optimum number of sides for specified radius function corrected_radius(r, n = undef) = r / cos(180 / sides(r, n)); //! Adjusted radius to make flats lie on the circle function corrected_diameter(d, n = undef) = 2 * corrected_radius(d / 2 , n); //! Adjusted diameter to make flats lie on the circle