mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-27 01:03:51 -05:00
Merge branch 'martinbudden-rectangular_tube'
This commit is contained in:
commit
a7d181ffc4
@ -5970,6 +5970,7 @@ Simple tube or ring
|
||||
### Modules
|
||||
| Module | Description |
|
||||
|:--- |:--- |
|
||||
| `rectangular_tube(size, center = true, thickness = 1, fillet = 0.5)` | Create a retangular tube with filleted corners |
|
||||
| `ring(or, ir)` | Create a ring with specified external and internal radii |
|
||||
| `tube(or, ir, h, center = true)` | Create a tube with specified external and internal radii and height `h` |
|
||||
| `woven_tube(or, ir, h, center= true, colour = grey(30)` | Create a woven tube with specified external and internal radii, height `h`, colours, warp and weft |
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 43 KiB |
@ -27,6 +27,9 @@ module tubes() {
|
||||
|
||||
translate([50, 10])
|
||||
tube(10, 8, 30);
|
||||
|
||||
translate([100, 10])
|
||||
rectangular_tube([10, 20, 30]);
|
||||
}
|
||||
|
||||
tubes();
|
||||
|
@ -68,3 +68,11 @@ module woven_tube(or, ir, h, center= true, colour = grey(30), colour2, warp = 2,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module rectangular_tube(size, center = true, thickness = 1, fillet = 0.5) { //! Create a retangular tube with filleted corners
|
||||
extrude_if(size.z, center = center)
|
||||
difference() {
|
||||
rounded_square([size.x, size.y], fillet);
|
||||
rounded_square([size.x - 2 * thickness, size.y - 2 * thickness], fillet);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user