openscad a natoceni 120stupnu

Zdeněk Aster Zdenek.Aster na seznam.cz
Sobota Březen 4 20:03:27 CET 2017


Jo super to je presne ono, ja jsem to nakonec udelal pres sin/cos ale nesla
my pouzit krychle musel bych s ni nejak tocit a to mi neslo nicmene s valcem

mi to proslo takhle


¨

difference() 

 {

  cylinder(100,10,10);

  translate([sin(0)*10, cos(0)*10, 0 ])

    rotate([0,0,0])

      cylinder(h=100,r=3);

  

  translate([sin(120)*10, cos(120)*10, 0 ])

    rotate([0,0,0])

      cylinder(h=100,r=3);




  translate([sin(240)*10, cos(240)*10, 0 ])

   rotate([0,0,0])

      cylinder(h=100,r=3);

 }




nicmene ten Vas priklad je naprosto super to bych asi neslozil moc diky, jdu

premyslet jak to vlastne funguje :-)







Zdenek Aster




---------- Původní zpráva ----------
Od: Petr Simek <psimek na jcu.cz>
Komu: HW-news <hw-list na list.hw.cz>
Datum: 4. 3. 2017 19:57:19
Předmět: Re: openscad a natoceni 120stupnu

"On Sat, 4 Mar 2017, Zdeněk Aster wrote: 

> No jo jenze ja to nejak neumim pouzit rotate mi toci s tim 
> objektem kdyz to ja potrebuju otocit vychozi pozici objektu. 
> 
> Ja jsem koukal na ruzne tutorialy, ale nevsimnul jsem si 
> 
> niceho podobneho z ceho bych to odkoukal, nebo mi spise 
> 
> neprislo nic vhodne.. 

Myslite takhle ? - 

difference(){ 
cylinder(r=10,h=100,$fn=48); 
union(){ 
for(stupen=[0:120:360]){ 
rotate([0,0,stupen]) 
translate([8,-1,-1]) 
cube([3,2,100+2]); 
} 
} 
} 



> Zdenek Aster 

*------------------------------------------------------------------------* 
| Petr Simek APS JU | 
| psimek na jcu.cz | 
*------------------------------------------------------------------------*__
_____________________________________________ 
HW-list mailing list - sponsored by www.HW.cz 
Hw-list na list.hw.cz 
http://list.hw.cz/mailman/listinfo/hw-list 
"
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20170304/4347de6e/attachment.html>


Další informace o konferenci Hw-list