PovJouets/incs/ridelles.inc

51 lines
1011 B
PHP
Raw Normal View History

2021-03-07 20:58:18 +01:00
/*
* LES JOUETS DE TONTON TH
* le wagon-ridelles
*/
//-----------------------------------------------------------------
#declare Ridelle_Cote = object
{
union {
2021-03-13 18:56:21 +01:00
cylinder { <0, 4.5, -11>, <0, 4.5, 11>, 0.25 }
box { <-.25, 4, -11>, <.25, 4.5, 11> }
2021-03-07 20:58:18 +01:00
#declare foo=0;
#while (foo<6)
2021-03-13 18:56:21 +01:00
box { <-.4, 0, foo*4-10-.2>, <.4, 4, foo*4-10+.2> }
#declare foo=foo+0.5;
2021-03-07 20:58:18 +01:00
#end
}
texture {
pigment { color MediumWood }
finish { roughness .83 }
}
2021-03-23 09:55:20 +01:00
translate y*5.85
2021-03-07 20:58:18 +01:00
}
2021-03-13 18:56:21 +01:00
/* avant et arriere */
2021-03-07 20:58:18 +01:00
#declare Ridelle_Bout = object
{
2021-03-13 18:56:21 +01:00
box { <-4, 6.2, -0.1>, <4, 9.7, 0.1> }
2021-03-07 20:58:18 +01:00
texture {
pigment { color MediumWood }
finish { roughness .73 }
}
}
//-----------------------------------------------------------------
#declare Wagon_Ridelles = object
{
union
{
object { Base_Courte }
object { Ridelle_Cote translate x*3.5 }
object { Ridelle_Cote translate x*-3.5 }
object { Ridelle_Bout translate z*11.3 }
object { Ridelle_Bout translate z*-11.3 }
}
}
//-----------------------------------------------------------------