mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-03 22:17:25 +02:00
Merge branch 'martinbudden-pulley_children'
This commit is contained in:
@@ -2699,7 +2699,7 @@ Timing belt pulleys, both toothed and plain with internal bearings for idlers.
|
|||||||
### Modules
|
### Modules
|
||||||
| Module | Description |
|
| Module | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| `pulley(type, colour = silver)` | Draw a pulley |
|
| `pulley(type, colour = silver)` | Draw a pulley, any children are placed above. |
|
||||||
| `pulley_assembly(type, colour = silver)` | Draw a pulley with its grub screws in place |
|
| `pulley_assembly(type, colour = silver)` | Draw a pulley with its grub screws in place |
|
||||||
|
|
||||||

|

|
||||||
|
@@ -53,7 +53,7 @@ function pulley_extent(type) = max(pulley_flange_dia(type), pulley_hub_dia(type)
|
|||||||
T_angle = 40;
|
T_angle = 40;
|
||||||
GT_r = 0.555;
|
GT_r = 0.555;
|
||||||
|
|
||||||
module pulley(type, colour = silver) { //! Draw a pulley
|
module pulley(type, colour = silver) { //! Draw a pulley, any children are placed above.
|
||||||
teeth = pulley_teeth(type);
|
teeth = pulley_teeth(type);
|
||||||
od = pulley_od(type);
|
od = pulley_od(type);
|
||||||
|
|
||||||
@@ -138,6 +138,10 @@ module pulley(type, colour = silver) { //! Draw a pulley
|
|||||||
else
|
else
|
||||||
core();
|
core();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($children)
|
||||||
|
translate_z(pulley_height(type))
|
||||||
|
children();
|
||||||
}
|
}
|
||||||
|
|
||||||
module pulley_assembly(type, colour = silver) { //! Draw a pulley with its grub screws in place
|
module pulley_assembly(type, colour = silver) { //! Draw a pulley with its grub screws in place
|
||||||
|
Reference in New Issue
Block a user