|
![](/i/fill.gif) |
Hi,
I'm trying to do a prism with a dodecagon (? -- anyway, polygon with 12
equal sides ) face and instead of trying to figure out the exact vectors
of the points, I wanted to do something like specifying every 4th
vector, then rotating the in-betweens around the y-axis, like this:
#declare v_01 = <0.5, 0> ;
#declare v_02 = <0.5, 0> rotate y*30 ;
#declare v_03 = <0.5, 0> rotate y*60 ;
#declare v_04 = <0, -0.5> ;
#declare v_05 = <0, -0.5> rotate y*30 ;
#declare v_06 = <0, -0.5> rotate y*60 ;
#declare v_07 = <-0.5, 0> ;
#declare v_08 = <-0.5, 0> rotate y*30 ;
#declare v_09 = <-0.5, 0> rotate y*60 ;
#declare v_10 = <0, 0.5> ;
#declare v_11 = <0, 0.5> rotate y*30 ;
#declare v_12 = <0, 0.5> rotate y*60 ;
prism {
linear_sweep
linear_spline
0, // sweep the following shape from here ...
1, // ... up through here
13, // the number of points making up the shape ...
v_01, , v_03, v_04, v_05, v_06, v_07, v_08, v_09, v_10, v_11, v_12, v_1
pigment { Green }
}
Of course I'm getting errors, else I wouldn't be posting, but I'm sure
the basic concept I'm thinking of is 'do-able' but what am I missing?
Thanks!
"LibraryMan"
Post a reply to this message
|
![](/i/fill.gif) |