|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I am having some difficulty connecting a few cylinders which I'm trying to make
a 3D pentagram knot with. The problem is that I'm not sure of the coordinates of
the ends of the cylinders after I have translated and rotated them.
Is there a way of doing:
Macro (<A,B,C>,
translate <0,20,-10>
rotate <20,0,10> )
etc
to return the coordinates of <A,B,C> after the transformations? I've tried to
figure out how to use vtransform but it is confusing!
Thanks in advance!!
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 06/28/2011 04:18 PM, zozimus wrote:
> I am having some difficulty connecting a few cylinders which I'm trying to make
> a 3D pentagram knot with. The problem is that I'm not sure of the coordinates of
> the ends of the cylinders after I have translated and rotated them.
>
> Is there a way of doing:
>
> Macro (<A,B,C>,
> translate<0,20,-10>
> rotate<20,0,10> )
> etc
>
> to return the coordinates of<A,B,C> after the transformations? I've tried to
> figure out how to use vtransform but it is confusing!
>
> Thanks in advance!!
>
>
maybe vaxis_rotate is what you want ... it's in 3.2.1.4.5 Functions of
the reference basically it returns a vector thats equal to some point in
space after you've rotated it ... this example will tell you where the
1st parameter (a vector) is after you've rotated it in the z direction
by 315 degrees ... the 2nd and 3rd parameters respectively.
#declare SomePoint = vaxis_rotate (<-0.295,4.29,0>, <0,0,1>, 315);
Good Luck
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"zozimus" <nomail@nomail> wrote:
> I am having some difficulty connecting a few cylinders which I'm trying to make
> a 3D pentagram knot with. The problem is that I'm not sure of the coordinates of
> the ends of the cylinders after I have translated and rotated them.
>
> Is there a way of doing:
>
> Macro (<A,B,C>,
> translate <0,20,-10>
> rotate <20,0,10> )
> etc
>
> to return the coordinates of <A,B,C> after the transformations?
Yes!
#declare NewABC = vrotate(<A,B,C>+<0,20,-19>, <20,0,10>)
Regards Roman
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 29.06.2011 08:55, schrieb Roman Reiner:
> "zozimus"<nomail@nomail> wrote:
>> I am having some difficulty connecting a few cylinders which I'm trying to make
>> a 3D pentagram knot with. The problem is that I'm not sure of the coordinates of
>> the ends of the cylinders after I have translated and rotated them.
>>
>> Is there a way of doing:
>>
>> Macro (<A,B,C>,
>> translate<0,20,-10>
>> rotate<20,0,10> )
>> etc
>>
>> to return the coordinates of<A,B,C> after the transformations?
>
> Yes!
>
> #declare NewABC = vrotate(<A,B,C>+<0,20,-19>,<20,0,10>)
Or for the generic case:
----------------
#include "transforms.inc"
#declare MyTransform = transform {
translate <0,20,-10>
rotate <20,0,10>
...
}
#declare NewABC = vtransform(MyTransform);
----------------
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 30.06.2011 04:55, schrieb clipka:
> #declare NewABC = vtransform(MyTransform);
Sorry, should be
#declare NewABC = vtransform(<A,B,C>,MyTransform);
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|