// 132-old smooth tyre #ifndef (QUAL) #local QUAL=3; #end #local Tyre_Half_Lathe=object { lathe { 11, <18,0> <18,5.6> <18.4,5.9> <19.6,6.1> <20,6.4> <20,8.6> <20.4,9> //<22.3,9> <22.5,9.3> <22.7,9> //<24.8,9> <25.0,9.3> <25.2,9> //<27.3,9> <27.5,9.3> <27.7,9> <29.6,9> <30,8.6> <30.5,4> <30.5,0> } rotate 90*z } #local Ridges=object { union { torus { 22.5,0.3 } torus { 25.0,0.3 } torus { 27.5,0.3 } } rotate 90*z } #local Tyre=object { union { #if (QUAL>1) object { Tyre_Half_Lathe } object { Tyre_Half_Lathe rotate 180*y } #else difference { cylinder { <9,0,0>,<-9,0,0>,30 } cylinder { <10,0,0>,<-10,0,0>,20 } } #end object { Ridges translate 9*x } object { Ridges translate -9*x } } } /* #local Tyre_no_Hole=object { union { cylinder { <0,8,0>,<0,-8,0>,30 } cylinder { <0,9,0>,<0,-9,0>,29 } torus { 29,1 translate -9*x } torus { 29,1 translate 9*x } } rotate 90*z } #local Tyre=object { Tyre_no_Hole } */ #declare _132_dash_old_dot_dat = #if (QUAL = 0) cylinder { <-9,0,0>,<9,0,0>,30 } #else object { Tyre bounded_by { cylinder { <-10,0,0>,<10,0,0>,31 } } } #end