File: C2_prismY_linearsweep_conicsweep_linspline.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 (38 lines) | stat: -rw-r--r-- 1,518 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// linear prism in y-direction: from .. ,to ..,number of points (first = last)
prism { linear_sweep
        cubic_spline
        0.00 ,1.00 , 6
        <-0.50, 0.00>, < 0.50,  0.00>, < 0.00,-0.75>, <-0.50, 0.00>,
        < 0.50, 0.00>, < 0.00, -0.75>
        texture {pigment{ color White} 
                 finish { phong 1.0}}
        rotate<0,0,0> 
        translate<-1.0,0,0> 
      } // end of prism --------------------------------------------------------

// linear prism in y-direction: from .. ,to ..,number of points (first = last)
prism { conic_sweep
        cubic_spline
        0.00 ,1.00 , 6
        <-0.50, 0.00>, < 0.50,  0.00>, < 0.00,-0.75>, <-0.50, 0.00>,
        < 0.50, 0.00>, < 0.00, -0.75>
        texture {pigment{ color White} 
                 finish { phong 1.0}}
        //scale <1,-1,1> translate<0,2.00,0>    // turn arround !!!
        rotate<0,0,0>
        translate<0.2,0,0> 
      } // end of prism --------------------------------------------------------


// linear prism in y-direction: from .. ,to ..,number of points (first = last)
prism { conic_sweep
        cubic_spline
        0.00 ,1.00 , 6
        <-0.50, 0.00>, < 0.50,  0.00>, < 0.00,-0.75>, <-0.50, 0.00>,
        < 0.50, 0.00>, < 0.00, -0.75>
        texture {pigment{ color White} 
                 finish { phong 1.0}}
        scale <1,-1,1> translate<0, 1.00,0>    // turn arround !!!
        rotate<0,0,0>
        translate<1.0,0,0> 
      } // end of prism --------------------------------------------------------