...
#declare Number_of_spokes = 16;
#declare W = 360/Number_of_spokes;
//-------------------------------------------------- wheel
union{
torus{0.9,0.20 scale <1,1,1> rotate<90,0,0>
texture{Rimtex}} // rim
torus{1.0,0.25 scale <1,1,1> rotate<90,0,0>
texture{Tiretex}} // tire
cylinder {<0,0,-0.48>,<0,0, 0.48>,0.05
texture{Hubtex}} // hub
//------------------- without #while-Schleife: --------<<1
union{
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 0*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 1*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 2*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 3*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 4*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 5*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 6*W>}
cylinder {<-1,0, 0>,<1,0, 0>,0.05 rotate<0,0, 7*W>}
texture{Rimtex}}
//---------------------------------------------- end --<<2
translate<0,1.25,0> rotate<0,40,0>} // end of union
//---------------------------------------------- end ---- |