|
![](/i/fill.gif) |
Can somebody please tell me why the Turn is not working....
#declare Start=<0,0,20>
#declare End=<8,0,30>
#declare Dist=vlength(Start-End);
#declare Turn=vrotate(Start,End);
box {<-1,-1,-1>,<1,1,1> texture {pigment {checker color Black, color
White } }
scale <(Dist),1,1> translate<-Dist,0,0> rotate y*Turn translate
End
}
I am trying to place a box with ends centered and directly sitting on the
Start and End vectors...
As a result I cannot directly use the box corners for location purposes.
The use of 'Turn' is intended to rotate (orientate) the object prior to the
final translate.
Or is there an easier way to do this? Maybe a simple vector matrix approach.
David V-J
Post a reply to this message
|
![](/i/fill.gif) |