|
![](/i/fill.gif) |
In article <3a6c1406@news.povray.org> , "m.o.p.s" <m.o.p.s.@wanadoo.fr>
wrote in povray.general:
> I recently rewrite a macro to easily place an object maybe it can help you
> or inspire you
>
> The syntax is like :
>
> object { Yourobject transform
> putto(refA,refB,norm1,newA,newB,norm2,option) }
>
> refA and ref B : two points used as starting position
> norm1 : if the object need to be oriented this vector is orthogonal to
> vector(ptB-ptA)
>
> newA , new B ,norm2 : final position
> option : scaling type ( 0 uniform scaling )
>
> example :
> "fleche" is an arrow build between the points -1*x, 1*x
> to place it between two points A and B write :
>
> object { fleche transform putto(-1*x,1*x,0,A,B,0,0) material { example }}
>
> "normal vector" are 0 because fleche don't need orientaion : it is an object
> of revolution
>
> I use this macro a lot to copy a same object between multiple position.
>
> I hope this could help
>
> Sorry for my english
I have removed the original post from povray.general and posted the images
here in povray.binaries.images together with the original post. See notice
in poray.general.
Thorsten
____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povray org
I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
Attachments:
Download 'img0.jpg' (3 KB)
Download 'img1.jpg' (3 KB)
Download 'img2.jpg' (5 KB)
Download 'macroputto.inc.txt' (7 KB)
Download 'mops.inc.txt' (32 KB)
Download 'putto_ex.pov.txt' (4 KB)
Download 'us-ascii' (0 KB)
Preview of image 'img0.jpg'
![img0.jpg](/povray.binaries.images/attachment/%3C3a6c2842%241%40news.povray.org%3E/img0.jpg?ttop=443840&toff=11300&preview=1)
Preview of image 'img1.jpg'
![img1.jpg](/povray.binaries.images/attachment/%3C3a6c2842%241%40news.povray.org%3E/img1.jpg?ttop=443840&toff=11300&preview=1)
Preview of image 'img2.jpg'
![img2.jpg](/povray.binaries.images/attachment/%3C3a6c2842%241%40news.povray.org%3E/img2.jpg?ttop=443840&toff=11300&preview=1)
|
![](/i/fill.gif) |