File: 00_parametric_sample.txt

package info (click to toggle)
povray 1%3A3.7.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 146,780 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (21 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// parametric object
// not yet worked out
parametric {
  function { u*v*sin (15*v) },            // x-axis
  function { v },                         // y-axis
  function { u*v*cos (15*v) }             // z-axis
  <0,0>, <1,1>
  //contained_by { sphere { 0,1 } } // texturing problem, use box instead to see!
  contained_by { box { <-1,-1,-1>, <1,1,1> } }
  // max_gradient 2
  accuracy 0.005        // 0.001 default, lower slower but better
  precompute 15 x,y,z   // precompute [x,y,z] normally gives faster rendering (<=20)

  rotate 180*x
  scale 1
  texture{ pigment{ color rgb<1,1,1> } 
            
         } 
  translate<0,1,0>
}