Descrizioni ed esempi per il raytracer POV-Ray di Friedrich A. Lohmüller
    Oggetti Geometrici in POV-Ray
English English English
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial
 
Oggetti Geometrici
   Indice
Oggetti di Base
Oggetti con macro + CSG
Oggetti in "shapes3.inc"
Altri Oggetti come Macros
Oggetti di Testo 3D
altri Oggetti

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

 height_field + HF macros
 Isosurfaces
                                   
polygon{ ...} - poligono dichiarato in piano xy.
built-in shape, non-CSG
//Sintassi: ------------------------------------
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