|
Italiano
Français Deutsch |
Facetted_Egg |
Facetted_Egg_Shape |
Facetted Egg general syntax: object{ Facetted_Egg (Quarter_Meridian_Segments, Equatorial_Segments) texture{ ... ... } } // end of object ------------------------ Facetted Egg Shape general syntax: object{ Facetted_Egg_Shape (Quarter_Meridian_Segments, Equatorial_Segments, Lower_Scale, Upper_Scale) texture{ ... ... } } // end of object ------------------------With: Quarter_Meridian_Segments = number of segments in one quarter of a meridian, Equatorial_Segments = number of segments along the equator and 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{ Facetted_Egg (6, 12 ) texture { pigment{color rgb<1,1,1&lgt;} finish {ambient 0.08 diffuse 0.7 phong 0.1} } scale 1 rotate<0,10,0> translate<0,1.15,0>} } // end of object ------------------------------------ #include "shapes_lo.inc" object{ Facetted_Egg_Shape (9, 22, 1.85, 0.80) texture { pigment{color rgb<1,1,1&lgt;*1.3} finish {ambient 0.08 diffuse 0.7 phong 0.1} } scale 1 rotate<0,10,0> translate<0,1.85,0>} } // end of object ------------------------------------ |
Macro in detail This macro is realisized by an intersection of prisms with faccetted egg shape outline at one end:
This Facetted_Egg macro is realisized by the same macro with fixed Lower_Scale = 1.15 and Upper_Scale = 1.55:
|