POV-Ray : Newsgroups : povray.advanced-users : Colision testing ? : Re: Colision testing ? Server Time
29 Jul 2024 12:15:19 EDT (-0400)
  Re: Colision testing ?  
From:
Date: 23 Apr 2002 04:38:49
Message: <i06acu4occgp43qjftefvkfu7ct075vd59@4ax.com>
On Mon, 22 Apr 2002 23:07:46 +0200, "_Light_Beam_" <fac### [at] aolcom> wrote:
> I must duplicate an object included in a "bounded_by" box, but how can I
> make to be sure the duplicated objects (for example 5 objects) doesn't be
> placed inside an other (Excuse me for my poor English).

probably it is not the fastest but rather simplest to explain method:
1. create and set location for both sets of objects
2. perform intersection{} on them
3. use VRand_In_Obj() to find any point in object
if returned point isn't inside intersection then you can be almost sure they
not overlap

ABX


Post a reply to this message

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