POV-Ray : Newsgroups : povray.newusers : Connecting two objects after transformation operations... : Re: Connecting two objects after transformation operations... Server Time: 23 Jul 2008 20:54:19 GMT
  Re: Connecting two objects after transformation operations...  
From: Chris B
Date: 13 Feb 2008 11:30:26
"this is me" <nomail@nomail> wrote in message 
news:web.47b2cc652e14cb95988f09540@news.povray.org...
> Hello,
>
> Let's say I do the following, so what I end up with is two 4-sided CSG 
> objects
> somewhere in space.  Now, using cylinders like the ones below, I'd like to
> connect the 4 corners of the first CSG object to the 4 corners of the 
> second,
> but I can't figure out how to do it.  Any thoughts?
>

You can declare a transformation for each rotation/translation pair, then 
use your transform both to position the objects and to reposition the 
location vectors that you need for the ends of the cylinders. Something like 
the following:

#declare MyTransform1 = transform {rotate ... translate ...}
object {... transform {MyTransform1}}
...
cylinder 
{vtransform(MyPoint1,MyTransform1),vtransform(MyPoint1,MyTransform2),MyRadius 
...}
...


Regards,
Chris B.


Post a reply to this message

Copyright 1991-2004 POV-Team™