File: transform.txt

package info (click to toggle)
povray 1%3A3.7.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 147,232 kB
  • sloc: cpp: 845,011; ansic: 122,118; sh: 34,204; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,389; cs: 879; awk: 590; perl: 245; xml: 95
file content (16 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// object/texture/etc. transformation
// do a predeclared translate/rotate/scale combo
// e.g.:
#declare Leaf_Orientation =
transform {
  scale 4.0
  rotate 30*z
  translate 2*y
}

transform {
  Leaf_Orientation    // transform an object
  //scale 0.5
  //rotate 45*x
  //transform {...}   // optional further transforms
}