POV-Ray : Newsgroups : povray.binaries.images : Rope Macro : Re: Rope Macro Server Time
5 Nov 2024 11:19:25 EST (-0500)
  Re: Rope Macro  
From: Chris B
Date: 2 Jun 2009 14:02:14
Message: <4a256926@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote in message 
news:4a1e9c33$1@news.povray.org...
>
> "Chris B" <nom### [at] nomailcom> schreef in bericht 
> news:4a1e7ec8@news.povray.org...
>>> And presumably you're using either catenaries or a
>>> full mechanics simulation to produce hanging curves...?
>>
>> Ahh! Nothing nearly so sophisticated there I'm afraid :-). I have a loose
>> segment macro ....
>
> For catenaries, there is a set of macros by PM2Ring (2005)

What a tough assignment that turned out to be   ;o)

I couldn't quite get my head round the approach that PM2Ring took, so I 
spent the weekend swotting up on the maths (with long breaks for the 
headaches to subside), and worked out a way to just use the most rudimentary 
catenary formula. So it uses the value of 'a' to control the shape, which is 
the ratio between 'H' (the horizontal component of the tension in the rope) 
and 'w' (the weight per unit length).

The method used by PM2Ring has the advantage that you can specify the ratio 
between the straight-line length and the rope length to control the amount 
of sag in the rope, which is probably more intuitive than using 'a'. 
Nevertheless, I plan to finish the documentation and post the first version 
of the code in a couple of days. Then if anyone can improve on it we could 
incorporate that in a future version.

So here's the result. An image of the catenary juxtaposed behind my original 
with 'fake' gravity.

Regards,
Chris B.


Post a reply to this message


Attachments:
Download 'rope_04.jpg' (25 KB)

Preview of image 'rope_04.jpg'
rope_04.jpg


 

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