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
   Index
Basic Shapes
Shapes by macro + CSG
3D text shapes
Other Shapes

 Non CSG Shapes
  - disc
  ->polygon
  - triangle
  - smooth_triangle
  - bicubic_patch
  - mesh
  - mesh2

 height_field + HF macros
 Isosurfaces
                                   
polygon{ ...} - flat shape of a polygon definded in xy plane.
built-in shape, non-CSG
//Syntax: ------------------------------------
polygon { number_of_points,
      // list of closed series of <x,y> points
      <x1, y1>,
       // ....
      <xn, yn>,
    } //-------------------------------------- 
disc
// --------------------------------------------
polygon {  17,
  <0.0, 0.0>, <0.00, 2.5>, <0.50, 2.5>,
  <0.5, 0.5>, <1.25, 0.5>, <1.25, 0.0>,
  <0.0, 0.0>,

  <1.5,0.0>, <1.5,2.0>, <3.0,2.0>, <3.0,0.0>,
  <1.5,0.0>,

  <2.0,0.5>, <2.0,1.5>, <2.5,1.5>, <2.5,0.5>,
  <2.0,0.5>
  texture { pigment{ color rgb<1,0.8,0.65>*0.7}
            normal { bumps 1.5 scale 0.05 }
            finish { diffuse 0.6 phong 0.5
                     reflection 0.4}
          } // end of texture
  scale<1,1,1>
  rotate<0,0,0>
  translate<0,0,0>
} // end of polygon --------------------------- 

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