POV-Ray : Newsgroups : povray.advanced-users : MegaPov Mech Sim help request Server Time
29 Jul 2024 00:27:21 EDT (-0400)
  MegaPov Mech Sim help request (Message 1 to 4 of 4)  
From: Tim McMurdo
Subject: MegaPov Mech Sim help request
Date: 2 Oct 2003 11:55:01
Message: <web.3f7c49fd18a366c1297c858d0@news.povray.org>
I have created a sail with the mech sim feature in megapov 1.0. I want to
attach a complex rope and pulley system to the corners of the sail. I read
in the documentation that I can retrieve the location of the mass that
represents the corner of the sail. However try as I might, I cannot
figure out how to access this informatiuon correctly.

My request is for an example code showing the location of a specific mass
being assigned to a variable.

Thanks,

Tim


Post a reply to this message

From: Tim McMurdo
Subject: Re: MegaPov Mech Sim help request
Date: 3 Oct 2003 11:55:01
Message: <web.3f7d9b0aa136bedd297c858d0@news.povray.org>
>My request is for an example code showing the location of a specific mass
>being assigned to a variable.

Never mind...I poked around inside of mechsimn.inc and found an example.

Here is and example.....

sphere {
  mechsim:mass(39):position,
  mechsim:mass(39):radius
  pigment{Blue}
}


In this case, 39 is the number of the mass whose position and radius I need.

Tim


Post a reply to this message

From: Christoph Hormann
Subject: Re: MegaPov Mech Sim help request
Date: 6 Oct 2003 11:32:02
Message: <4ae851-kj5.ln1@triton.schunter.etc.tu-bs.de>
Tim McMurdo wrote:
>>My request is for an example code showing the location of a specific mass
>>being assigned to a variable.
> 
> 
> Never mind...I poked around inside of mechsimn.inc and found an example.
> 
> Here is and example.....
> 
> sphere {
>   mechsim:mass(39):position,
>   mechsim:mass(39):radius
>   pigment{Blue}
> }
> 
> 

Note that you usually don't need to litarally give the 39 but you can 
store 'mechsim:mass_count' in a variable in the 'topology' block and use 
this index to access the same mass later.  The sample scenes coming with 
MegaPOV also include examples for this.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 2 Sep. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Tim McMurdo
Subject: Re: MegaPov Mech Sim help request
Date: 6 Oct 2003 17:55:01
Message: <web.3f81e3b6a136bedd9a303f820@news.povray.org>
Christoph Hormann wrote:
>Note that you usually don't need to litarally give the 39 but you can
>store 'mechsim:mass_count' in a variable in the 'topology' block and use
>this index to access the same mass later.  The sample scenes coming with
>MegaPOV also include examples for this.


Thanks Christoph. I actually used an array to define the masses and this
allowed me to use the array to address each mass.

Let me take this opportunity to thank you for the massive contribution your
work has made to this community.

Tim


Post a reply to this message

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