POV-Ray : Newsgroups : povray.general : bounding slabs : Re: bounding slabs Server Time
13 Aug 2024 03:15:46 EDT (-0400)
  Re: bounding slabs  
From: ingo
Date: 17 Nov 1998 13:09:27
Message: <3651bbd7.0@news.povray.org>
Chris Colefax heeft geschreven in bericht
<3651211E.2B3BB980@geocities.com>...
>The only problem I could discover was your line "#while (n >=0)"
>followed by "#local ru= (0.5*l)/sin(radians(180/n));".  If n starts as a
>multiple of 3, and hence reaches 0, POV-Ray will crash while parsing
>when it encounters the attempt to divide 180 by zero.  Changing the
>n >=0 to n >0 fixed that problem, after which I had no trouble rendering
>with rotate <90, 91, 0> applied to the finished object (on POV-Ray 3.1
>and 3.1a for DOS, nor 3.1a for Windows).
>

Aahum,   "#local ru= (0.5*l)/sin(radians(180/n));" I never looked at this
line. Being to fixated on the rotation. Thanks Chris.

Leaves me with one question: Why did it render with a rotation <90,90,0>?
Is this the magic of POV-Ray?

ingo


Post a reply to this message

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