Added tesrdrop option to mouse_hole.
This commit is contained in:
parent
e3a500e9c6
commit
017ec480c0
|
@ -2990,7 +2990,7 @@ Just a BOM entry at the moment and cable bundle size functions for holes, plus c
|
|||
|:--- |:--- |
|
||||
| ```cable_tie(cable_r, thickness)``` | A ziptie threaded around cable radius ```cable_r``` and through a panel with specified ```thickness```. |
|
||||
| ```cable_tie_holes(cable_r, h = 100)``` | Holes to thread a ziptie through a panel to make a cable tie. |
|
||||
| ```mouse_hole(cable, h = 100)``` | A mouse hole to allow a panel to go over a wire bundle. |
|
||||
| ```mouse_hole(cable, h = 100, teardrop = false)``` | A mouse hole to allow a panel to go over a wire bundle. |
|
||||
| ```ribbon_cable(ways, length)``` | Add ribbon cable to the BOM |
|
||||
| ```wire(color, strands, length, strand = 0.2)``` | Add stranded wire to the BOM |
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 71 KiB |
|
@ -61,7 +61,7 @@ module wires() {
|
|||
translate([-w / 2, 0])
|
||||
square([w, h]);
|
||||
|
||||
mouse_hole(bundle, 0);
|
||||
mouse_hole(bundle, 0, true);
|
||||
}
|
||||
|
||||
translate_z(-thickness)
|
||||
|
|
|
@ -46,10 +46,14 @@ function cable_bundle(cable) = //! Arrangement of a bundle in a flat cable clip
|
|||
function cable_width(cable) = cable_bundle(cable)[0] * cable_wire_size(cable); //! Width in flat clip
|
||||
function cable_height(cable) = cable_bundle(cable)[1] * cable_wire_size(cable); //! Height in flat clip
|
||||
|
||||
module mouse_hole(cable, h = 100) { //! A mouse hole to allow a panel to go over a wire bundle.
|
||||
module mouse_hole(cable, h = 100, teardrop = false) { //! A mouse hole to allow a panel to go over a wire bundle.
|
||||
r = wire_hole_radius(cable);
|
||||
|
||||
rotate(90) slot(r, 2 * r, h = h);
|
||||
if(teardrop)
|
||||
vertical_tearslot(r = r, l = 2 * r, h = h);
|
||||
else
|
||||
rotate(90)
|
||||
slot(r, 2 * r, h = h);
|
||||
}
|
||||
|
||||
module cable_tie_holes(cable_r, h = 100) { //! Holes to thread a ziptie through a panel to make a cable tie.
|
||||
|
|
Loading…
Reference in New Issue