1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-01 05:00:14 +02:00

Merge branch 'martinbudden-pulley_children'

This commit is contained in:
Chris Palmer
2021-04-02 19:49:27 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -2699,7 +2699,7 @@ Timing belt pulleys, both toothed and plain with internal bearings for idlers.
### Modules
| 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 |
![pulleys](tests/png/pulleys.png)

View File

@@ -53,7 +53,7 @@ function pulley_extent(type) = max(pulley_flange_dia(type), pulley_hub_dia(type)
T_angle = 40;
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);
od = pulley_od(type);
@@ -138,6 +138,10 @@ module pulley(type, colour = silver) { //! Draw a pulley
else
core();
}
if($children)
translate_z(pulley_height(type))
children();
}
module pulley_assembly(type, colour = silver) { //! Draw a pulley with its grub screws in place