POV-Ray : Newsgroups : povray.binaries.scene-files : Collision detector problem : Collision detector problem Server Time
2 Sep 2024 00:18:25 EDT (-0400)
  Collision detector problem  
From: Jörg 'Yadgar' Bleimann
Date: 6 Jul 2003 17:21:23
Message: <3F08B04A.5FC5BAB8@tiscalinet.de>
High!

Since about two months I'm fiddling around with a PoV script to place
randomly distributed objects on a plane without
overlappings... as long as I restrained myself to spheres, it worked
very well, even with random radii, but as I started to
check random cubes for overlappings, the problems began.

I'm pretty sure that the collision condition stated in lines 112 and 113
is incomplete, as it checks only for the x and z
coordinates of the lower left front corner and the upper right back
corner, whereas the left back and right front corners
should also be taken into consideration.

But regardless of that, the condition even as it is now never becomes
true - the warning statement given in line 114 is never
displayed! What did I wrong?

Clueless,

Yadgar

P. S. Don't bother about all those German comments - I just didn't have
the nerves to translate them:..


Post a reply to this message


Attachments:
Download 'distri_0-04_provi.pov.txt' (6 KB)

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