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
                                   
       Supertorus macro
          Declared in "shapes.inc"
Supertorus
// ------------------------------------
object{ Supertorus(
  1.00, 0.25,// R_Major, R_Minor,
  0.25, 0.45,// Maj_Control, Min_Control,
  0.001,1.50)// Accuracy, Max_Gradient)

        texture{
          pigment{ color rgb<1,0.65,0>}
          finish { phong 1}
        } // end of texture

        scale<1,1,1>
        rotate<0,0,0>
        translate<0,0,0>
      } // ----------------------------
Supertorus
// ------------------------------------
object{ Supertorus(
  1.00, 0.25,// R_Major, R_Minor,
  2.00, 0.45,// Maj_Control, Min_Control,
  0.001,1.50)// Accuracy, Max_Gradient)

        texture{
          pigment{ color rgb<0.65,1,0>}
          finish { phong 1}
        } // end of texture

        scale<1,1,1>
        rotate<0,0,0>
        translate<0,0,0>
      } // ----------------------------
Supertorus
// ------------------------------------
object{ Supertorus(
  1.00, 0.25,// R_Major, R_Minor,
  1.00, 0.45,// Maj_Control, Min_Control,
  0.001,1.50)// Accuracy, Max_Gradient)

        texture{
          pigment{ color rgb<1,0.65,0>}
          finish { phong 1}
        } // end of texture

        scale<1,1,1>
        rotate<0,0,0>
        translate<0,0,0>
      } // ----------------------------
Supertorus
// ------------------------------------
object{ Supertorus(
  1.00, 0.25,// R_Major, R_Minor,
  0.25, 1.45,// Maj_Control, Min_Control,
  0.001,1.50)// Accuracy, Max_Gradient)

        texture{
          pigment{ color rgb<1,.3,.65>}
          finish { phong 1}
        } // end of texture

        scale<1,1,1>
        rotate<0,0,0>
        translate<0,0,0>
      } // ----------------------------

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