Beschreibungen und Beispiele zum Raytracer POV-Ray von Friedrich A. Lohmüller

            Geometrische Körper in POV-Ray

English English English
Italiano Italiano
Français français

Home
- POV-Ray Tutorial
 
Geometrische Körper
   Inhaltsübersicht
Grundkörper
Shapes by macro + CSG
3D-Text-Formen
Andere Körper

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

 height_field + HF macros
 Isosurfaces
                                       
polygon{ ...} - ebene polygonale Fläche definiert in der xy-Ebene.
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