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

Home
- POV-Ray Tutorial
 
Geometric Shapes
   Overview

Objects in "shapes3.inc"
- Segment_of_CylinderRing
- Segment_of_Torus
- Segment_of_Object
- Egg
- Egg_Shape
- Facetted_Egg
- Facetted_Egg_Shape
- Facetted_Sphere
- Ring_Sphere
- Column_N
- Column_N_AB
- Pyramid_N
- Pyramid_N_AB
>Round_Pyramid_N_out
>Round_Pyramid_N_in
- Round_Cylinder_Tube
- Rounded_Tube_AB
- Rounded_Tube
- Round_N_Tube_Polygon
- Round_Conic_Torus
- Round_Conic_Prism
- Half_Hollowed_Rounded_Cyl1
- Half_Hollowed_Rounded_Cyl2

 
                               
Geometric object definded in my include file "shapes3.inc" (formerly "shapes_lo.inc").
Round_Pyramid_N
Round_Pyramid_N_out
Round_Pyramid_N
Round_Pyramid_N column
Round_Pyramid_N
Round_Pyramid wireframe
Wire_N_Pyramid truncated
Round_Pyramid wireframe
Round_Pyramid_N
Round_Pyramid wireframe
Round_Pyramid_N
Round_N_Pyramid filled
Round_Pyramid_N
... truncated
Round_Pyramid_N
... merge
Round_Pyramid_N_out
Rounded pyramid from A to B with N edges defined
by circumcircle radii (distance center to corners).

general syntax:
object{ Round_Pyramid_N_out( N,
               Point_A, R_out_A,
               Point_B, R_out_B,
               R_Border,
               Fill_On, Merge_On
             ) //----------------
        texture{ ... ... }
      } // end of object --------

Round_Pyramid_N_in
Rounded pyramid from A to B with N edges defined
by incircle radii (distance center to faces).

general syntax:
object{ Round_Pyramid_N_in( N,
              Point_A, R_in_A,
              Point_B, R_in_B,
              R_Border,
              Fill_On, Merge_On
            ) //-------ö---------
        texture{ ... ... }
      } // end of object --------
N >2 = the number of edges,
Point_A, R_out_A = Point A, circumcircle radius at A,
Point_B, R_out_B = Point B, circumcircle radius at B,
Point_A, R_in_A = Point A, incircle radius at A,
Point_B, R_in_B = Point B, incircle radius at B,
R_Border = the radius of the edges,
Fill_On = 0 = Wire_N_Pyramid, 1 = filled shape.
Merge_On = 1 = merges the elements of the pyramid
for using transparent material.




Example:
#include "shapes3.inc"
object{ Round_Pyramid_N_out(
           8 , // number of side faces
           <-0.25,0.35,-0.8>, 0.40,// A, R_out_A,
                   <1,1.1,0>, 0.70,// B, R_out_B,
           0.08, // border radius
           1, // 1 = filled, 0 = wire
           0  // 0 = union, 1 = merge
        ) //-------------------------------------
        texture{ pigment{ rgb<1,1,1> }
                 finish { phong 1 }
               } // end of texture --------------
      } // end of object //----------------------
Example:
#include "shapes_lo.inc"
object{ Round_Pyramid_N_in(
           5 , // number of side faces
           <0,0.00,0>, 1.00, <0,1.25,0>, 0.00,
           0.05, // border radius
           0,   // 1 = filled, 0 = wire
           0   // 0 = union, 1 = merge
        ) //-------------------------------------
        texture{ pigment{ color rgb<1,1,1>}
                 finish { phong 1}
               } // end of texture
      } // 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

© Friedrich A. Lohmüller, 2013
www.f-lohmueller.de