Descriptions and Examples for the POV-Ray Raytracer by Friedrich A. Lohmüller
    POV-Ray Examples - How To Make Objects for POV-Ray
Italiano Italiano
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial

  - POV-Ray Examples
   Index of Content
  - Geometry
    - Pawn
    - Wireframe Cube
    - Octagon
    - Egg Shape
    - Star
    - Optical Lens
    - Chessboard
    - Regular Tetrahedron
    - Penrose Triangle
    - Yin & Yang
    - Fishblob
    - Threefold
    - Trefoil
  - Architecture
  - Engineering
                                       
 
Pawn

Pawn

Construction of a Pawn Shape.
Example for the using of the "union"-statement.
Objects: "sphere", "cylinder".
Methods: "#declare", "union{...}", "object{...}"
Click here for an example!

The construction in details:


//=================================
union{
  sphere{<0,1,0>,0.35}
  cone  {<0,0,0>,0.5,<0,1,0>,0.0}
  texture{
    pigment{ color  rgb<1,0.65,0>}
    finish { diffuse 0.9 phong 0.5}
  }// end of texture
}// end of union
//=================================
Frontview (View in +z direction)

The resulting image:
Pawn 320x240

Scene description
for POV-Ray:
"povpawn.txt" or "povpawn.pov"

Variation on the theme:
If we change the text as follows:

//==================================
#declare Pawn =
union{
  sphere{<0,1,0>,0.35}
  cone  {<0,0,0>,0.5,<0,1,0>,0}
  texture{
    pigment{color  rgb<1,0.65,0>}
    finish {diffuse 0.9 phong 0.5}
  }// end of texture
}// end of union
//----------------------------------
union{
 object{ Pawn translate < 0, 0, 0.0>}
 object{ Pawn translate < 0, 0, 1.2>}
 object{ Pawn translate < 0, 0, 2.4>}
 rotate<0,0,0> translate<0,0.7,0>
}// end of union
//============================== end
 
we'll get the following image:
 
Pawn 320x240
top

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