POV-Ray : Newsgroups : povray.general : Like flower turn to the sun : Like flower turn to the sun Server Time
29 Jul 2024 06:15:55 EDT (-0400)
  Like flower turn to the sun  
From: Albun
Date: 30 Nov 2012 16:20:02
Message: <web.50b921f63ac718a08505b26b0@news.povray.org>
Well, it's mathematical problem about orientation of box, in this exemple.
The box are positionned along an array-point,
but they are all in one orientation.

My question is :
how can I oriented each box in a direction, around one point_orientation, like
flower turn to the sun.




////////
#declare Dim_Camp =dimension_size( camp,1 );


union{
// outer loop -------------------
 #declare NrX = 1;  // start x

 #while (NrX< Dim_Camp)


box{<-1.5,0,-.5>,<1.5,1,.5> pigment{Red} scale 2 rotate <0,0,0> translate
camp[NrX]  }


 #declare NrX = NrX + 1;  // next Nr x
 #end // --------------- end of loop x
// end of outer loop



Thanks


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.