POV-Ray Raytracer Descriptions and Examples by Friedrich A. Lohmüller
Italiano Italiano
Français français
Deutsch Deutsch

macro "Ring_Sphere (...)" overview my macro objects overview my macro objects

This shape is definded as "macro" in my include file "shapes_lo.inc":

Wire_N_Pyramid
Wire_N_Pyramid truncated
Wire_N_Pyramid merge

Wire_N_Pyramid

... truncated

... merge

Round_N_Pyramid
Round_N_Pyramid truncated
Round_N_Pyramid merge

Round_N_Pyramid

... truncated

... merge


   Regular Rounded Pyramid with N Edges
   also Truncated and/or as a Wireframe

 
general syntax:
object{ Round_N_Pyramid (N, Wire_Radius,
                         Pyramid_R1, Pyramid_R2, Pyramid_Height,
                         Fill_On, Merge_On)
        texture{ ... ... }
      } // end of object ------------------------

Here N >2 = the number of edges,
Wire_Radius = the radius of the edges,
Pyramid_R1 = the base width of the sides,
Pyramid_R2 = the top width of the sides,
this value at zero for a non-truncated pyramid,
this value = Pyramid_R1 for a rounded colmn.
Pyramid_Height = hard riddle !
Fill_On = 0 = Wire_N_Pyramid, 1 = filled shape.
Merge_On = 1 = merges the elements of the pyramid
for using transparent material.
 
Sample "Round_N_Pyramid":
#include "shapes_lo.inc"
object{ Round_N_Pyramid (6, 0.10 , 1.00, 0.70, 0.55 , 1, 0)
        texture{ pigment{ color rgb <1,1,1>}
                 normal { bumps 0.25 scale 0.015}
                 finish { ambient 0.1 diffuse 0.85 phong 1}
               } // end of texture
        scale <1,1,1> rotate <0,90,0> translate <0,0.1,0>}

      } // end of object ------------------------------------ 
Sample "Wire_N_Pyramid":
#include "shapes_lo.inc"
object{ Round_N_Pyramid (5, 0.05 , 1.00, 0.00, 0.85 , 0, 0)
        texture{ pigment{ color rgb <1.0 ,0.8, 0.1>}
                 normal { bumps 0.5 scale 0.015}
                 finish { ambient 0.1 diffuse 0.85 phong 1}
               } // end of texture
        scale <1,1,1> rotate <0,0,0> translate <0,0,0>}
      } // end of object ------------------------------------ 


Here some sample images with this macro:


Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid
Round_N_Pyramid


macro "Ring_Sphere (...)" overview my macro objects overview my macro objects

© Friedrich A. Lohmüller, 2010
email email: (legacy email redacted)
homepage:www.f-lohmueller.de