OpenSCAD príklady: Rozdiel medzi revíziami
Zo stránky SensorWiki
Bez shrnutí editace |
|||
Riadok 38: | Riadok 38: | ||
| | | | ||
| <source lang="C++"> | | <source lang="C++"> | ||
$fn=48; | |||
difference() | |||
{ | |||
cylinder(r=3,h=20); | |||
{ | |||
translate([2.54/2,0,0]) | |||
cylinder(r=0.2,h=21); | |||
translate([-2.54/2,0,0]) | |||
cylinder(r=0.2,h=21); | |||
translate([0,0,18]) | |||
cylinder(r=2.5,h=3); | |||
} | |||
} | |||
</source> | </source> | ||
Riadok 43: | Riadok 59: | ||
|} | |} | ||
== Minca do vozíka == | |||
{| width="100%" | |||
| | |||
| <source lang="C++"> | |||
</source> | |||
| [[Súbor:OpenSCAD-Example3.png|thumb|Minca do vozíka.]] | |||
|} | |||
[[Category:OpenSCAD]] [[Category:DTV]] [[Category:NAVEZ]] | [[Category:OpenSCAD]] [[Category:DTV]] [[Category:NAVEZ]] |
Verzia z 23:47, 11. marec 2019
Dištančné stĺpiky
translate([0,0,0])
stlpik(10);
translate([10,0,0])
stlpik(20);
translate([20,0,0])
stlpik(30);
module stlpik(length=10)
{
$fn=64;
difference()
{
cylinder(d=6, h=length);
translate([0,0,-1])
cylinder(d=3.2,h=length+2);
}
}
|
Držiak LED
$fn=48;
difference()
{
cylinder(r=3,h=20);
{
translate([2.54/2,0,0])
cylinder(r=0.2,h=21);
translate([-2.54/2,0,0])
cylinder(r=0.2,h=21);
translate([0,0,18])
cylinder(r=2.5,h=3);
}
}
|