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
                                   
       Round_Cylinder macro
          Declared in "shapes.inc"
Round_Cylinder
// ---------------------------------------
object{
 //Round_Cylinder(A,B,Radius,EdgeRadius,Merge)
 Round_Cylinder(<0,0,0>,<0,1,0>,0.50,0.20,0)
 texture{
   pigment{ color rgb<1,0.1,0.35>}
   finish { phong 1}
 } // end of texture
 scale<1,1,1>
 rotate<0,0,0>
 translate<0,0,0>
} //---------------------------------------

Examples:


Round_Cylinder
 
Attention:
Edge_Radius must be > Distance(A;B).
Radius of cylinder must be > Edge_Radius.
// -------------------------------------
//Round_Cylinder(A,B,Radius,EdgeR,Merge)
object{
  Round_Cylinder
   (<0,0,0>,<0,1,0>,0.40,0.05,0)
  texture{
    pigment{ color rgb<1,0.1,0.35>}
    finish {  phong 1}
  } // end of texture
  translate<-0.5,0,-0.5>
} // -----------------------------------
object{
  Round_Cylinder
   (<0,0,0>,<0,1,0>,0.2001,0.20,1)
  material{
  texture{ T_Glass3
    pigment{ color rgbt<1,0.1,0.9,0.6>}
    finish { phong 1}
   } // end of texture
  interior{ ior 1.35 caustics 0.025}
  } // end of material
  scale<1,1,1>
  rotate<0,0,0>
  translate<0,0,0>
} // -----------------------------------
object {
  Round_Cylinder
   (<0,0,0>,<0,0.3001,0>,0.5,0.15,0)
  texture{
    pigment{ color rgb<0.75,0.6,1>}
    finish { phong 1}
  } // end of texture
  scale<1,1,1>
  rotate<0,0,0>
  translate<0.5,0, 0.5>
} //------------------------------------






top

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