Descrizioni ed esempi per il raytracer POV-Ray di Friedrich A. Lohmüller
    Oggetti Geometrici in POV-Ray
English English English
Français français
Deutsch Deutsch

Home
- POV-Ray Tutorial
 
Oggetti Geometrici
 Indice
Oggetti di Base

Forme con macros + CSG
  - Spheroid, ellipsoid
  - Disk_X,Disk_Y,Disk_Z
  - Round_Box
  ->Round_Cylinder
  - Round_Cone
  - Supercone
  - Supertorus

Oggetti in "shapes3.inc"
Altri Oggetti come Macros
Oggetti di Testo 3D
Altre Oggetti
Forme Non-CSG
height_field + HF macros
Isosurfaces
                                   
       Round_Cylinder macro
          Dichiarato 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>
} //---------------------------------------

Esempi:


Round_Cylinder
 
Attenzione:
Edge_Radius > distanza (A;B).
Radius del cylindro > 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} }
  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} }
  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} }
  scale<1,1,1>
  rotate<0,0,0>
  translate<0.5,0, 0.5>
} //------------------------------------






top

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