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
                                   
    triangle{ ...} - simple flat triangle shape

    built-in shape, non-CSG
//Syntax: -----------------
triangle{ <vertex_1>,
          <vertex_2>,
          <vertex_3>
        } //--------------- 
disc
Example:
// -------------------------------------------
triangle{ <0.0, 1.0,-1.0>,
          <0.0, 1.0, 2.0>,
          <1.0, 0.0, 1.0>
          texture{ pigment{ color rgb<0.5,1,0>}
                   finish { phong 1}
                 } // end of texture
          scale<1,1,1>
          rotate<0,0,0>
          translate<0,0,0>
        } // end of triangle -----------------

Note: "triangle" and "smooth_triangle" are used normally to build all those objects which are too complex to be made by built-in shapes. They are usually not created by hand but are converted from other files (i.e. files which use HF_macros with file output) or generated by utilities (i.e. POV_Tree + TOM_TREE for trees, Poser + converter PoseRay for human and animal creatures etc. )
See also: mesh and mesh2.

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