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
   Overview
Basic Shapes

Shapes by macro + CSG
  ->Spheroid, ellipsoid
  - Disk_X,Disk_Y,Disk_Z
  - Round_Box
  - Round_Cylinder
  - Round_Cone
  - Supercone
  - Supertorus

Shapes in "shapes3.inc"
Other Shapes by macros
3D text shapes
Other Shapes
Non CSG Shapes
height_field + HF macros
Isosurfaces
                                   
   Spheroid - unevenly scaled sphere, ellipsoid
      Declared in "shapes.inc"
Sample Spheroid
// -----------------------------------------
object{
   Spheroid( //CenterVector,
             <-1.50,3.00,-2.00>,
             // RadiusVector Rx,Ry,Rz )
             <2.0,1.2,2.5> )
   texture{ pigment{color rgbt<.75,.2,0,.7>}
            finish { phong 1}
          } // end of texture
   scale<1,1,1>
   rotate<0,0,0>
   translate<0,0.0,0>
} //----------------------------------------
Notes:
Historical object: The first versions of POV-Ray didnt't allow unevenly scaled spheres.
Today you can scale a sphere in all directions independently an move it to any location:

// -----------------------------------------
sphere{ <0,0,0> 1
        scale<2.0,1.2,2.5>
        translate<-1.50,3.00,-2.00>,
        texture{ pigment{color rgbt<.75,.2,0,.7>}
                 finish { phong 1}
               } // end of texture
} //----------------------------------------
top

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