mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-01 21:20:11 +02:00
Fixed typos.
This commit is contained in:
@@ -44,7 +44,7 @@ function knob_height(type) = //! Total height of the knob
|
|||||||
screw_knob_stem_h(type) + screw_knob_flange_t(type);
|
screw_knob_stem_h(type) + screw_knob_flange_t(type);
|
||||||
|
|
||||||
module screw_knob(type) { //! Generate the STL for a knob to fit the specified hex screw
|
module screw_knob(type) { //! Generate the STL for a knob to fit the specified hex screw
|
||||||
type = !is_list(type[0]) ? screw_knob(type) : type; // Allow just the screw to be specified for backwards compatability
|
type = !is_list(type[0]) ? screw_knob(type) : type; // Allow just the screw to be specified for backwards compatibility
|
||||||
screw = screw_knob_screw(type);
|
screw = screw_knob_screw(type);
|
||||||
wall = screw_knob_wall(type);
|
wall = screw_knob_wall(type);
|
||||||
trap_r = nut_trap_radius(screw_nut(screw));
|
trap_r = nut_trap_radius(screw_nut(screw));
|
||||||
|
@@ -239,7 +239,7 @@ function segmented_path(path, min_segment) = [ //! Add points to a path to enfo
|
|||||||
path[len(path) - 1]
|
path[len(path) - 1]
|
||||||
];
|
];
|
||||||
|
|
||||||
function spiral_paths(path, n, r, twists, start_angle) = let( //! Create a new paths which sprial around the given path. Use for making twisted cables
|
function spiral_paths(path, n, r, twists, start_angle) = let( //! Create a new paths which spiral around the given path. Use for making twisted cables
|
||||||
segment = twists ? path_length(path) / twists / r2sides(2 * r) : inf,
|
segment = twists ? path_length(path) / twists / r2sides(2 * r) : inf,
|
||||||
transforms = sweep_transforms(segmented_path(path, segment), twist = 360 * twists)
|
transforms = sweep_transforms(segmented_path(path, segment), twist = 360 * twists)
|
||||||
) [for(i = [0 : n - 1]) let(initial = [r, 0, 0, 1] * rotate(start_angle + i * 360 / n)) [for(t = transforms) initial * t]];
|
) [for(i = [0 : n - 1]) let(initial = [r, 0, 0, 1] * rotate(start_angle + i * 360 / n)) [for(t = transforms) initial * t]];
|
||||||
|
Reference in New Issue
Block a user