OpenSCAD small projects: Unterschied zwischen den Versionen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche
(+ ruler)
Zeile 6: Zeile 6:
 
Datei:Fan-Protector_OpenSCAD.PNG|[[OpenSCAD small projects#Fan protective grille]]
 
Datei:Fan-Protector_OpenSCAD.PNG|[[OpenSCAD small projects#Fan protective grille]]
 
Datei:MFK Logo 3D Diadem.png|[[MfK Logo 3D]]
 
Datei:MFK Logo 3D Diadem.png|[[MfK Logo 3D]]
 +
Datei:Ruler for debugging.png|[[OpenSCAD small projects#Ruler for debugging]]
 
</gallery>
 
</gallery>
  
Zeile 18: Zeile 19:
 
<br/>
 
<br/>
  
<gallery>
+
<gallery perrow=5>
 
Datei:Fan-Protector_OpenSCAD.PNG|OpenSCAD construction
 
Datei:Fan-Protector_OpenSCAD.PNG|OpenSCAD construction
 
Datei:Foto1779.jpg|Printing and ...
 
Datei:Foto1779.jpg|Printing and ...
Zeile 25: Zeile 26:
 
Datei:Foto1793.jpg|Safety first!
 
Datei:Foto1793.jpg|Safety first!
 
</gallery>
 
</gallery>
 +
 +
== Ruler for debugging ==
 +
[[Datei:Ruler for debugging.png|100px|none|thumb|Screenshot]]
 +
* add a simple ruler to OpenSCAD source code
 +
* optical control - prevent getting lost of orientation and size of the result
 +
* ruler will '''not''' be part of STL output etc. (using the [http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Modifier_Characters % background modifier])
 +
* Source: [[Datei:Ruler for debugging.scad]]
 +
<nowiki>
 +
//
 +
// rulers - demo
 +
//
 +
 +
# translate ([60, 30, 50]) cylinder (h = 30, r=20, center = true, $fn=30); // sample, only - add your objects here
 +
 +
 +
ruler_grid = 10;  // mm
 +
ruler_digits = 10;
 +
ruler_thick = 0.5;
 +
ruler_length = ruler_grid / 4;
 +
 +
for ( i = [0 : ruler_grid : ruler_grid * ruler_digits] )
 +
{
 +
% translate ([i, 0, 0]) cube([ruler_thick, ruler_thick, ruler_length], center=true);
 +
% translate ([0, i, 0]) cube([ruler_thick, ruler_thick, ruler_length], center=true);
 +
% translate ([0, 0, i]) cube([ruler_length, ruler_thick, ruler_thick], center=true);
 +
}
 +
</nowiki>
  
 
== OpenSCAD Tipps, Tutorials etc. ==
 
== OpenSCAD Tipps, Tutorials etc. ==

Version vom 9. Dezember 2011, 11:27 Uhr

A collection of smaller projects using OpenSCAD:

Fan protective grille

  • The Hackerspace main network switch was quiet noisy.
  • Original 40 mm internal fan (5 Volt) was replaced by an external 70 mm & 12 Volt model.
  • Running at 5 Volts keeps it at a lower noise level.
  • To avoid (further) hurts, the fan needed a grille.
  • OpenSCAD Script Datei:Fan-Protector 005.scad
    • → render mesh and export in STL format
      • → 3D print on yag-freak's Prusa Mendel - thank you!


Ruler for debugging

Screenshot
//
// rulers - demo
//

# translate ([60, 30, 50]) cylinder (h = 30, r=20, center = true, $fn=30); // sample, only - add your objects here


ruler_grid = 10;  // mm
ruler_digits = 10;
ruler_thick = 0.5;
ruler_length = ruler_grid / 4;

for ( i = [0 : ruler_grid : ruler_grid * ruler_digits] ) 
{
	% translate ([i, 0, 0]) cube([ruler_thick, ruler_thick, ruler_length], center=true);
	% translate ([0, i, 0]) cube([ruler_thick, ruler_thick, ruler_length], center=true);
	% translate ([0, 0, i]) cube([ruler_length, ruler_thick, ruler_thick], center=true);
}

OpenSCAD Tipps, Tutorials etc.