Added spool_pitch() function and more modern 300mm filament spool.

This commit is contained in:
Chris Palmer 2019-07-19 10:39:05 +01:00
parent 886319a6e4
commit 43b17c6f0b
4 changed files with 6 additions and 2 deletions

View File

@ -2303,6 +2303,7 @@ Filament spool models
| Function | Description |
|:--- |:--- |
| ```spool_height(type)``` | Outside width |
| ```spool_pitch(type)``` | Spacing of the rims |
### Modules
| Module | Description |
@ -2316,6 +2317,7 @@ Filament spool models
| ---:|:--- |:---|
| 1 | ```spool(spool_200x55)``` | Filament spool 200 x 55 |
| 1 | ```spool(spool_300x85)``` | Filament spool 300 x 85 |
| 1 | ```spool(spool_300x88)``` | Filament spool 300 x 88 |
<a href="#top">Top</a>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -30,6 +30,7 @@ function spool_hub_bore(type) = type[6]; //! Bore through the hub
function spool_hub_diameter(type) = type[7]; //! Diameter of the thicker hub
function spool_hub_taper(type) = type[8]; //! Diameter at which it tapers down to rim thickness
function spool_height(type) = spool_width(type) + 2 * spool_hub_thickness(type); //! Outside width
function spool_pitch(type) = spool_width(type) + spool_rim_thickness(type); //! Spacing of the rims
module spool(type) { //! Draw specified spool
vitamin(str("spool(", type[0], "): Filament spool ", spool_diameter(type), " x ", spool_width(type)));

View File

@ -23,10 +23,11 @@
// i i e i u o u u
// a d p m b r b b
// t t e
// h h t t d t
// h h t t d taper_d
spool_300x88 = ["spool_300x88", 300, 88, 43, 6, 8, 52, 214, 300];
spool_300x85 = ["spool_300x85", 300, 85, 60, 4, 8, 52, 250, 280];
spool_200x55 = ["spool_200x55", 200, 55, 40, 5, 5, 52, 200, 200];
spools = [spool_200x55, spool_300x85];
spools = [spool_200x55, spool_300x85, spool_300x88];
use <spool.scad>