home *** CD-ROM | disk | FTP | other *** search
- // Solide Hexagonal, axe en x
- #declare Hexagon = intersection {
- plane { y, 1 }
- plane { y, 1 rotate x*60 }
- plane { y, 1 rotate x*120 }
- plane { y, 1 rotate x*180 }
- plane { y, 1 rotate x*240 }
- plane { y, 1 rotate x*300 }
- clipped_by { box { <-1.01,-1.3,-1.3>, <1.01,1.3,1.3> } }
- }
-
- // Cône infini centré sur l'axe des x
- #declare QCone_X =
- quadric
- {<-1, 1, 1>,
- < 0, 0, 0>,
- < 0, 0, 0>, 0
- }
-
- // Cône fini centré sur l'axe des x
- #declare CONE_X = cone {x*0,0, x,1}
-
-
- #declare Bois_Crayon = pigment {
- wood
- turbulence 0.1
- color_map
- { [0 1 colour red 0.88 green 0.71 blue 0.50
- colour red 0.98 green 0.81 blue 0.60 ]
- }
- scale <0.12, 10, 1>
- rotate z*90
- }
-
-
- #declare Mine_Crayon = intersection {
- object {
- CONE_X
- scale <2,0.35,0.35>
- translate x*-6.35
- }
- cylinder { x*-6.2, x*6, 0.1 }
- }
-
- #declare Vernis_Crayon = intersection {
- object {
- Hexagon
- scale <5.99,0.36,0.36>
- }
- object {
- QCone_X
- scale <2,0.36,0.36>
- translate x*-6.2
- }
- }
-
- #declare Corps_Crayon = object {
- intersection {
- object {
- Hexagon
- scale <6,0.35,0.35>
- }
- object {
- QCone_X
- scale <2,0.35,0.35>
- translate x*-6.3
- }
- }
- }
-