|
Italiano
Français Deutsch |
Egg |
Egg_Shape |
Egg object general syntax: object{ Egg texture{ ... ... } scale 1 rotate <0,0,0> translate < 0, 0, 0> } // end of object ------------------------ Egg Shape general syntax: object{ Egg_Shape (Lower_Scale, Upper_Scale) texture{ ... ... } } // end of object ------------------------With: Lower_Scale = y scale of the lower half of the shape, Upper_Scale = y scale of the upper half of the shape. The total height of these shapes is scaled to 2 units. |
Samples:
#include "shapes_lo.inc" object { Egg // = Egg_Shape (1.15,1.55) texture{ pigment{ color rgb<1,1,1&lgt;} normal { bumps 0.5 scale 0.0025} finish { ambient 0.15 diffuse 0.85 phong 0.5 reflection 0.02} } // end of texture rotate < 0,0, 0> translate < 0,0, 0> } // end of object --------------------------- #include "shapes_lo.inc" object { Egg_Shape (2.05,0.65) texture{ pigment{ color rgb<1,1,1>} normal { bumps 0.5 scale 0.0025} finish { ambient 0.15 diffuse 0.85 phong 1 reflection 0.02} } // end of texture translate < 0,0, 0> } // end of object --------------------------- |
Macro in detail This macro is realisized by an union of two intersection of ellipsoids with according boxes:
This Egg object is realisized by the same macro with fixed Lower_Scale = 1.15 and Upper_Scale = 1.55:
Here some variations of that macro:
|