Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

OpenSCAD small projects

1.076 Byte hinzugefügt, 10:27, 9. Dez. 2011
+ ruler
Datei:Fan-Protector_OpenSCAD.PNG|[[OpenSCAD small projects#Fan protective grille]]
Datei:MFK Logo 3D Diadem.png|[[MfK Logo 3D]]
Datei:Ruler for debugging.png|[[OpenSCAD small projects#Ruler for debugging]]
</gallery>
<br/>
<galleryperrow=5>
Datei:Fan-Protector_OpenSCAD.PNG|OpenSCAD construction
Datei:Foto1779.jpg|Printing and ...
Datei:Foto1793.jpg|Safety first!
</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. ==
1.384
Bearbeitungen