GALERIE    EN COURS    SCENES    MACROS    GUIDE    A PROPOS


Helical Torus



Référence : Povray Internal Functions

f_helical_torus(x, y, z, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)


With some sets of parameters, it looks like a torus with a helical winding around it. The winding optionally has grooves around the outside.

L'exemple ci-dessous utilise les paramètres trouvés dans la partie "Isosurfaces helix spirals" du site Andrea Lohmüller & Friedrich A. Lohmüller
Helical Torus Chrome
Script :

// --------------------------------------------------------------------------
// --- HDRI SKY SPHERE ------------------------------------------------------
// --------------------------------------------------------------------------
sphere {
  <0,0,0>, 1000
  pigment {
    image_map {
    hdr "galileo_probe.hdr"
    once
    interpolate 2
    map_type 7
    }
  }
  finish {
    ambient 1
    diffuse 0
    }
  hollow
  no_image
  }



// --------------------------------------------------------------------------
// --- HELICAL TORUS ISOSURFACE ---------------------------------------------
// --------------------------------------------------------------------------
isosurface {
  function {
    f_helical_torus (x, y, z, 1, 9, 5, 0.25, 0.10, -0.15, 0, 1, 1,  0)
    }          
  contained_by {
    box { <-1.5,-1.0, -1.5>, <1.5, 1.0, 1.5> }
    }
  threshold 0.001
  accuracy 0.001
  max_gradient 15

  texture { T_Chrome_2C }
  translate< 0, dH, 0>
  rotate -5*z
  }
Il n'y a pas de source de lumière dans cette scéne mais vous remarquerez le paramètre ambient 1 dans la partie 'HDRI SKY SPHERE'.