|
|
-----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
|
|