POV-Ray : Newsgroups : povray.general : povray crashes on multiplication? : Re: povray crashes on multiplication? Server Time
31 Jul 2024 02:20:02 EDT (-0400)
  Re: povray crashes on multiplication?  
From: "Jérôme M. Berger"
Date: 2 Dec 2007 17:21:28
Message: <47532fe8$1@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

stevenvh wrote:
> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> 
>> Could you post the *full* code, including DrawBook() and without the
>> '...' replacement? Or even better, remove other stuff until the code is
>> "small enough" but *still* causes the crash (= a minimal testcase to
>> reproduce the crash).
> 
> Hi Nicolas,
> thanks for your reply. I was stripping unnecessay code until I had only a few
> dozen lines left when I spotted a logical error in my code:
> 
>     #declare InvCosSl = 1 / cos ( 180 * aSlanting / pi );
> 
> should of course be
> 
>     #declare InvCosSl = 1 / cos ( pi * aSlanting / 180 );
> 
> and now it seems to be OK. Playing a bit with the argument of cos() I noticed
> that POVray goes bananas if the argument falls outside [-pi/2, pi/2].
> Is there any reason why it won't accept just any real number, as cos() should?
> 
	Sure there is: read my reply to your first post ;)

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeb### [at] freefr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeb### [at] jabberfr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHUy/nd0kWM4JG3k8RAqHBAJ0c/702BfkWlaFtN0lsEIfvRYvoQwCglFYT
M++nMVuvkjRAYSNtWS2q2pU=
=cAAi
-----END PGP SIGNATURE-----


Post a reply to this message

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