POV-Ray : Newsgroups : povray.newusers : Connecting two objects after transformation operations... : Re: Connecting two objects after transformation operations... Server Time
28 Jul 2024 18:24:41 EDT (-0400)
  Re: Connecting two objects after transformation operations...  
From: Chris B
Date: 13 Feb 2008 06:30:26
Message: <47b2d4d2$1@news.povray.org>
"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 2003-2023 Persistence of Vision Raytracer Pty. Ltd.