POV-Ray : Newsgroups : povray.binaries.utilities : Looking for gears : Re: Looking for gears Server Time
16 May 2024 12:59:25 EDT (-0400)
  Re: Looking for gears  
From: Marc Schimmler
Date: 22 Jul 1999 15:34:49
Message: <3797731D.C2CC996D@ica.uni-stuttgart.de>
David Wilkinson wrote:
> 
> On Thu, 22 Jul 1999 09:30:06 +0200, Marc Schimmler <sch### [at] icauni-stuttgartde>
wrote:
> 
> >
> >Thanks David!
> >
> >I will have a look at it. About two weeks ago the Loial Raven sent me
> >his version of a gear macro. He hasn't decided yet to publish it but I
> >would strongly encourage him to do so. It's much faster than mine when
> >it comes to csg because of the bounding he uses and it's a macro and not
> >an include file like mine (at time I was writing this no 3.1 version for
> >linux existed). Maybe I find some to improve my file and change it to a
> >macro.
> >I would also like to learn about the diametral pitch. If you have a
> >pointer for me I would be quite happy. My long term plan is to create a
> >library of technical parts for povray to have the possibility to
> >visualize mechanical constructions.
> >
> >
> Hi Marc,
> 
> I added semicolons to the ends of your #declare statements and ran your example
under
> 3.1g.  I then changed my example to match yours as nearly as possible (same texture
and
> numbers of teeth).  The times came out as 166 secs for yours and 34 secs for mine in
> rendering one frame at 800x600.  I didn't set out to make it speedy so I find this
quite
> surprising.  This is on a 350P2 with 64Mb.
> Diametral pitch (DP) is just the number of teeth per unit diameter (usually inches).
 The
> addendum of the gear tooth is normally 1/DP and the dedendum 1.25/DP or slightly
less.
> 
> Cheers,
> David

Thank you for the information!

The times are very different. Have ever tried to bound the gear? I guess
this could speed it up a bit more. 
When I wrote the include file I only tried to avoid the worst cases of
speed loss but when I hear your results I have to take a closer look.
Anyway, if I ever make a newer version of it, it will be in the macro
form and maybe my increased understanding of POV (if there's any of
that) will help me to make it better. Anyway thank you David.

All the Best,

Marc


Post a reply to this message

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