-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
255 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
echo(version=version()); | ||
|
||
inner_radius = 180/2; | ||
outer_radius = 320/2; | ||
holes_radius = 15; | ||
holes_pos = (outer_radius+inner_radius)/2; | ||
height = 50; | ||
|
||
difference() { | ||
cylinder(h=height, r=outer_radius, center=true); | ||
cylinder(h=height+10, r=inner_radius, center=true); | ||
|
||
translate([holes_pos, 0, 0]) | ||
cylinder(h=height+10, r=holes_radius, center= true); | ||
|
||
translate([-holes_pos, 0, 0]) | ||
cylinder(h=height+10, r=holes_radius, center= true); | ||
|
||
translate([0, holes_pos, 0]) | ||
cylinder(h=height+10, r=holes_radius, center= true); | ||
|
||
translate([0, -holes_pos, 0]) | ||
cylinder(h=height+10, r=holes_radius, center= true); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// text_on_cube.scad - Example for text() usage in OpenSCAD | ||
|
||
echo(version=version()); | ||
|
||
font = "Inter:style=Bold"; //["Liberation Sans", "Liberation Sans:style=Bold", "Liberation Sans:style=Italic", "Liberation Mono", "Liberation Serif"] | ||
|
||
width = 120; | ||
depth = 400; | ||
height= 40; | ||
|
||
letter_height = 3; | ||
letter_size = 42; | ||
|
||
module letter(l) { | ||
// Use linear_extrude() to make the letters 3D objects as they | ||
// are only 2D shapes when only using text() | ||
color("gray") | ||
linear_extrude(height = letter_height) { | ||
text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 16); | ||
} | ||
} | ||
|
||
module insulator(x, band1, band2) { | ||
|
||
translate([x, 0, 0]) | ||
union() { | ||
difference() { | ||
translate([width/2+75, 0, 0]) | ||
cube([150, 150, 40], center=true); | ||
|
||
translate([width/2+75, 0, 0]) | ||
cylinder(h=50, r=35, center= true); | ||
} | ||
difference() { | ||
union() { | ||
cube([width, depth, height], center= true); | ||
|
||
translate([0, 0, height/2]) | ||
rotate([0, 0, -90]) | ||
letter(band1); | ||
|
||
translate([0, 0, -height/2]) | ||
rotate([0, -180, -90]) | ||
letter(band2); | ||
} | ||
|
||
translate([0,-150, 0]) | ||
cylinder(h=50, r=15, center= true); | ||
|
||
translate([0,150, 0]) | ||
cylinder(h=50, r=15, center= true); | ||
} | ||
} | ||
} | ||
|
||
insulator(0, "15m \u25BA", "17m \u25BA"); | ||
insulator(350, "17m \u25BA", "20m \u25BA"); | ||
insulator(700, "20m \u25BA", "30m \u25BA"); | ||
insulator(1050, "30m \u25BA", "40m \u25BA"); | ||
insulator(1400, "40m \u25BA", ""); | ||
|
||
|
||
|
||
/* | ||
o = cube_size / 2 - letter_height / 2; | ||
module letter(l) { | ||
// Use linear_extrude() to make the letters 3D objects as they | ||
// are only 2D shapes when only using text() | ||
linear_extrude(height = letter_height) { | ||
text(l, size = letter_size, font = font, halign = "center", valign = "center", $fn = 16); | ||
} | ||
} | ||
difference() { | ||
union() { | ||
color("gray") cube(cube_size, center = true); | ||
translate([0, -o, 0]) rotate([90, 0, 0]) letter("C"); | ||
translate([o, 0, 0]) rotate([90, 0, 90]) letter("U"); | ||
translate([0, o, 0]) rotate([90, 0, 180]) letter("B"); | ||
translate([-o, 0, 0]) rotate([90, 0, -90]) letter("E"); | ||
} | ||
// Put some symbols on top and bottom using symbols from the | ||
// Unicode symbols table. | ||
// (see https://en.wikipedia.org/wiki/Miscellaneous_Symbols) | ||
// | ||
// Note that depending on the font used, not all the symbols | ||
// are actually available. | ||
translate([0, 0, o]) letter("\u263A"); | ||
translate([0, 0, -o - letter_height]) letter("\u263C"); | ||
} | ||
// Written in 2014 by Torsten Paul <Torsten.Paul@gmx.de> | ||
// | ||
// To the extent possible under law, the author(s) have dedicated all | ||
// copyright and related and neighboring rights to this software to the | ||
// public domain worldwide. This software is distributed without any | ||
// warranty. | ||
// | ||
// You should have received a copy of the CC0 Public Domain | ||
// Dedication along with this software. | ||
// If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
*/ |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
echo(version=version()); | ||
|
||
inner_radius = 180/2; | ||
outer_radius = 320/2; | ||
holes_radius = 20; | ||
holes_pos = (outer_radius+inner_radius)/2; | ||
height = 50; | ||
|
||
difference() { | ||
cube([120, 180, 50], center = true); | ||
|
||
translate([0, 30, 0]) | ||
cylinder(h=60, r=35, center=true); | ||
|
||
translate([0, -90+40, 0]) | ||
cylinder(h=60, r=10, center=true); | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.