1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-28 07:59:03 +02:00

Compare commits

..

7 Commits

Author SHA1 Message Date
Chris Palmer
450224ec39 Merge branch 'martinbudden-fan_rename' 2021-01-09 19:24:53 +00:00
Chris Palmer
dcd2624a12 Updated readme for blower(BL40x10). 2021-01-09 19:24:06 +00:00
Chris Palmer
83e8502ecb Merge branch 'fan_rename' of https://github.com/martinbudden/NopSCADlib into martinbudden-fan_rename 2021-01-09 19:22:51 +00:00
Chris Palmer
a722df0b2b J-head heater components now hidden when taped. 2021-01-09 19:21:49 +00:00
Chris Palmer
6d223c8d1f Added render to countersink. 2021-01-09 19:11:20 +00:00
Chris Palmer
6d59ea2bc8 Added render option to drag_chain_assembly(). 2021-01-09 18:43:43 +00:00
Martin Budden
8243b244af Clarified name of BL40x10 blower. 2021-01-09 13:02:57 +00:00
5 changed files with 28 additions and 23 deletions

View File

@@ -251,7 +251,7 @@ module drag_chain_link(type, start = false, end = false, check_kids = true) { //
} }
// Need to use a wrapper because can't define nested modules in an assembly // Need to use a wrapper because can't define nested modules in an assembly
module _drag_chain_assembly(type, pos = 0) { module _drag_chain_assembly(type, pos = 0, render = false) {
s = drag_chain_size(type); s = drag_chain_size(type);
x = (1 + exploded()) * s.x; x = (1 + exploded()) * s.x;
r = drag_chain_radius(type) * x / s.x; r = drag_chain_radius(type) * x / s.x;
@@ -278,8 +278,11 @@ module _drag_chain_assembly(type, pos = 0) {
module link(n) // Position and colour link with origin at the hinge hole module link(n) // Position and colour link with origin at the hinge hole
translate([-z / 2, 0, -z / 2]) { translate([-z / 2, 0, -z / 2]) {
stl_colour(n < 0 || n == npoints - 1 ? pp3_colour : n % 2 ? pp1_colour : pp2_colour) stl_colour(n < 0 || n == npoints - 1 ? pp3_colour : n % 2 ? pp1_colour : pp2_colour)
drag_chain_link(type, start = n == -1, end = n == npoints - 1, check_kids = false) render_if(render)
let($fasteners = 0) children(); drag_chain_link(type, start = n == -1, end = n == npoints - 1, check_kids = false)
let($fasteners = 0)
children();
let($fasteners = 1) children(); let($fasteners = 1) children();
} }
@@ -307,15 +310,15 @@ module _drag_chain_assembly(type, pos = 0) {
//! 1. Remove the support material from the links with side cutters. //! 1. Remove the support material from the links with side cutters.
//! 1. Clip the links together with the special ones at the ends. //! 1. Clip the links together with the special ones at the ends.
module drag_chain_assembly(type, pos = 0) //! Drag chain assembly module drag_chain_assembly(type, pos = 0, render = false) //! Drag chain assembly
assembly(str(drag_chain_name(type), "_drag_chain"), big = true) assembly(str(drag_chain_name(type), "_drag_chain"), big = true)
if($children == 2) if($children == 2)
_drag_chain_assembly(type, pos) { _drag_chain_assembly(type, pos, render) {
children(0); children(0);
children(1); children(1);
} }
else if($children == 1) else if($children == 1)
_drag_chain_assembly(type, pos) _drag_chain_assembly(type, pos, render)
children(0); children(0);
else else
_drag_chain_assembly(type, pos); _drag_chain_assembly(type, pos, render);

View File

@@ -313,7 +313,7 @@ Models of radial blowers.
| 4 | `screw(M2_cap_screw, 8)` | Screw M2 cap x 8mm | | 4 | `screw(M2_cap_screw, 8)` | Screw M2 cap x 8mm |
| 3 | `screw(M3_cap_screw, 20)` | Screw M3 cap x 20mm | | 3 | `screw(M3_cap_screw, 20)` | Screw M3 cap x 20mm |
| 2 | `screw(M4_cap_screw, 25)` | Screw M4 cap x 25mm | | 2 | `screw(M4_cap_screw, 25)` | Screw M4 cap x 25mm |
| 1 | `blower(BL40x10)` | Square radial 4010 | | 1 | `blower(BL40x10)` | Square radial fan 4010 |
| 4 | `washer(M2_washer)` | Washer M2 x 5mm x 0.3mm | | 4 | `washer(M2_washer)` | Washer M2 x 5mm x 0.3mm |
| 3 | `washer(M3_washer)` | Washer M3 x 7mm x 0.5mm | | 3 | `washer(M3_washer)` | Washer M3 x 7mm x 0.5mm |
| 2 | `washer(M4_washer)` | Washer M4 x 9mm x 0.8mm | | 2 | `washer(M4_washer)` | Washer M4 x 9mm x 0.8mm |
@@ -1102,17 +1102,17 @@ Needs updating as mostly obsolete versions.
### Vitamins ### Vitamins
| Qty | Module call | BOM entry | | Qty | Module call | BOM entry |
| ---:|:--- |:---| | ---:|:--- |:---|
| 2 | `tubing(HSHRNK16)` | Heatshrink sleeving ID 1.6mm x 15mm | | 2 | `tubing(HSHRNK16)` | Heatshrink sleeving ID 1.6mm x 15mm - not shown |
| 4 | `tubing(HSHRNK64, 60)` | Heatshrink sleeving ID 6.4mm x 60mm | | 4 | `tubing(HSHRNK64, 60)` | Heatshrink sleeving ID 6.4mm x 60mm |
| 1 | `e3d_hot_end(E3Dv5, 3)` | Hot end E3D V5 direct 3mm | | 1 | `e3d_hot_end(E3Dv5, 3)` | Hot end E3D V5 direct 3mm |
| 1 | `e3d_hot_end(E3Dv6, 3)` | Hot end E3D V6 direct 3mm | | 1 | `e3d_hot_end(E3Dv6, 3)` | Hot end E3D V6 direct 3mm |
| 1 | `e3d_hot_end(E3D_clone, 3)` | Hot end E3D clone aliexpress 3mm | | 1 | `e3d_hot_end(E3D_clone, 3)` | Hot end E3D clone aliexpress 3mm |
| 1 | `jhead_hot_end(JHeadMk5, 3)` | Hot end JHead MK5 3mm | | 1 | `jhead_hot_end(JHeadMk5, 3)` | Hot end JHead MK5 3mm |
| 2 | `tubing(PTFE07, 62)` | PTFE sleeving OD 1.2mm ID 0.71mm x 62mm | | 2 | `tubing(PTFE07, 62)` | PTFE sleeving OD 1.2mm ID 0.71mm x 62mm - not shown |
| 2 | `tubing(PTFE20, 45)` | PTFE sleeving OD 2.6mm ID 2mm x 45mm | | 2 | `tubing(PTFE20, 45)` | PTFE sleeving OD 2.6mm ID 2mm x 45mm - not shown |
| 1 | `resistor(RIE1212UB5C5R6)` | Resistor UB5C 5R6F 5R6 3W vitreous enamel | | 1 | `resistor(RIE1212UB5C5R6)` | Resistor UB5C 5R6F 5R6 3W vitreous enamel - not shown |
| 1 | | Tape self amalgamating silicone 110mm x 25mm | | 1 | | Tape self amalgamating silicone 110mm x 25mm |
| 1 | `resistor(Epcos)` | Thermistor Epcos B57560G104F 100K 1% | | 1 | `resistor(Epcos)` | Thermistor Epcos B57560G104F 100K 1% - not shown |
| 2 | | Wire Red PTFE 16/0.2mm strands, length 170mm | | 2 | | Wire Red PTFE 16/0.2mm strands, length 170mm |
| 4 | `ziptie(small_ziptie, 8)` | Ziptie 2.5mm x 100mm min length | | 4 | `ziptie(small_ziptie, 8)` | Ziptie 2.5mm x 100mm min length |
@@ -4559,7 +4559,7 @@ to the assembly, for example to add inserts.
### Modules ### Modules
| Module | Description | | Module | Description |
|:--- |:--- | |:--- |:--- |
| `drag_chain_assembly(type, pos = 0)` | Drag chain assembly | | `drag_chain_assembly(type, pos = 0, render = false)` | Drag chain assembly |
| `drag_chain_link(type, start = false, end = false, check_kids = true)` | One link of the chain, special case for start and end | | `drag_chain_link(type, start = false, end = false, check_kids = true)` | One link of the chain, special case for start and end |
| `drag_chain_screw_positions(type, end)` | Place children at the screw positions, end = 0 for the start, 1 for the end | | `drag_chain_screw_positions(type, end)` | Place children at the screw positions, end = 0 for the start, 1 for the end |
| `screw_lug(screw, h = 0)` | Create a D shaped lug for a screw | | `screw_lug(screw, h = 0)` | Create a D shaped lug for a screw |

View File

@@ -24,7 +24,7 @@
// h h s t t // h h s t t
RB5015 = ["RB5015", "Blower Runda RB5015", 51.3, 51, 15, 31.5, M4_cap_screw, 26, [27.3, 25.4], 4.5, [[4.3, 45.4], [47.3,7.4]], 20, 14, 1.5, 1.3, 1.2, 15]; RB5015 = ["RB5015", "Blower Runda RB5015", 51.3, 51, 15, 31.5, M4_cap_screw, 26, [27.3, 25.4], 4.5, [[4.3, 45.4], [47.3,7.4]], 20, 14, 1.5, 1.3, 1.2, 15];
PE4020 = ["PE4020", "Blower Pengda Technology 4020", 40, 40, 20, 27.5, M3_cap_screw, 22, [21.5, 20 ], 3.2, [[37,3],[3,37],[37,37]], 29.3, 17, 1.7, 1.2, 1.3, 13]; PE4020 = ["PE4020", "Blower Pengda Technology 4020", 40, 40, 20, 27.5, M3_cap_screw, 22, [21.5, 20 ], 3.2, [[37,3],[3,37],[37,37]], 29.3, 17, 1.7, 1.2, 1.3, 13];
BL40x10 =["BL40x10","Square radial 4010", 40, 40,9.5, 27, M2_cap_screw, 16, [24, 20 ], 2.4, [[2,2],[38,2],[2,38],[38,38]], 30 , 9.5, 1.5, 1.5, 1.1, 1.5]; BL40x10 =["BL40x10","Square radial fan 4010", 40, 40,9.5, 27, M2_cap_screw, 16, [24, 20 ], 2.4, [[2,2],[38,2],[2,38],[38,38]], 30 , 9.5, 1.5, 1.5, 1.1, 1.5];
blowers = [BL40x10, PE4020, RB5015]; blowers = [BL40x10, PE4020, RB5015];

View File

@@ -194,12 +194,14 @@ module jhead_hot_end_assembly(type, filament, naked = false) { //! Assembly with
if(exploded()) if(exploded())
heater_components(); heater_components();
else else
intersection() { if(naked) // hide the wires when not exploded
heater_components(); intersection() {
heater_components();
if(naked) color("grey")
color("grey") cylinder(r = 12, h = 100, center = true); cylinder(r = 12, h = 100, center = true);
else }
cube(1, true); // hide the wires when not exploded else
} hidden() // hidden by the tape
heater_components();
} }

View File

@@ -262,7 +262,7 @@ module screw_countersink(type, drilled = true) { //! Countersink shape
if(drilled) if(drilled)
cylinder(h = head_height + eps, r1 = 0, r2 = head_rad + head_t); cylinder(h = head_height + eps, r1 = 0, r2 = head_rad + head_t);
else else
intersection() { render() intersection() {
cylinder(h = head_height + eps, r1 = 0, r2 = head_rad + head_t); cylinder(h = head_height + eps, r1 = 0, r2 = head_rad + head_t);
cylinder(h = head_height + eps, r = head_rad + eps); cylinder(h = head_height + eps, r = head_rad + eps);