POV-Ray : Newsgroups : povray.advanced-users : Finding moving point Server Time
29 Jul 2024 18:20:59 EDT (-0400)
  Finding moving point (Message 1 to 3 of 3)  
From: Mick Hazelgrove
Subject: Finding moving point
Date: 31 Jan 2001 12:12:27
Message: <3a78477b@news.povray.org>
Hi All

I hope this isn't to easy for this group, it sure is hard as hell for me,
hope you can help. I want to create a macro that will solve the following
but I'm stuck.

I have 3 points P0, P1, P2

P0 and P1 are connected by a cylinder of one unit length

P1 and P2 are connected by a cylinder of two units length

roughly in this configuraton:

                         P0 /  <0,0,0>
                             /
                           /
                           \   P1
                             \
                               \
                                 \
                                   \
                                     \  P2  eg<. 5, -2 . 5, 0>

P0 is fixed at 0
P1 is the unknown
P2 can be translated anywhere in a circle of roughly radius .5 and is a
given point

HOW do I calculate the position of P1? and or the angles of rotation of the
two cylinders P2, P1 and P1, P0

 I'm not worried about errors causing the cylinders to seperate as I can see
that and adjust for it visually.

Mick


Post a reply to this message

From: Warp
Subject: Re: Finding moving point
Date: 31 Jan 2001 12:28:45
Message: <3a784b4c@news.povray.org>
The FindKnee() macro in the Thoroughly Useful Macros does exactly what you
want:

http://enphilistor.users4.50megs.com/macs.htm

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: Finding moving point
Date: 31 Jan 2001 13:27:01
Message: <3a7858f5@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3a784b4c@news.povray.org...
>   The FindKnee() macro in the Thoroughly Useful Macros does exactly what
you
> want:
>
> http://enphilistor.users4.50megs.com/macs.htm


Thanks Warp, now all I gotta do is work out how to use it!

Mick


Post a reply to this message

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