1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-28 09:40:21 +02:00

Added circlips.

This commit is contained in:
Chris Palmer
2020-03-24 17:22:32 +00:00
parent c1b5bd1b87
commit f2ec3e71f4
9 changed files with 241 additions and 27 deletions

40
tests/circlips.scad Normal file
View File

@@ -0,0 +1,40 @@
//
// NopSCADlib Copyright Chris Palmer 2020
// nop.head@gmail.com
// hydraraptor.blogspot.com
//
// This file is part of NopSCADlib.
//
// NopSCADlib is free software: you can redistribute it and/or modify it under the terms of the
// GNU General Public License as published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// NopSCADlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
include <../core.scad>
use <../utils/layout.scad>
include <../vitamins/circlips.scad>
module circlips(all = false)
layout([for(c = circlips) circlip_d3(c)], 10, false) let(c = circlips[$i]) {
gap = circlip_d3(c) + 2;
internal_circlip(c, 1);
if(all) {
translate([0, gap])
internal_circlip(c, 0);
translate([0, 2 * gap])
internal_circlip(c, -1);
}
}
if($preview)
circlips(true);

View File

@@ -26,14 +26,13 @@ module resistors()
resistor(resistors[$i]);
module al_clad_resistors()
layout([for(a = al_clad_resistors) al_clad_width(a)])
layout([for(a = al_clad_resistors) al_clad_width(a)], 5, true)
rotate(90)
al_clad_resistor_assembly(al_clad_resistors[$i], 4.7)
screw(al_clad_hole(al_clad_resistors[$i]) > 3 ? M3_pan_screw : M2p5_pan_screw, 16);
module thermal_cutouts()
layout([for(t = thermal_cutouts) tc_length(t)])
layout([for(t = thermal_cutouts) tc_length(t)], 5, true)
thermal_cutout(thermal_cutouts[$i]);
module components() {
@@ -42,7 +41,7 @@ module components() {
translate([0, 50])
TO220("Generic TO220 package");
translate([30, 50])
translate([50, 50])
panel_USBA();
translate([0,80])

BIN
tests/png/circlips.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB