POV-Ray : Newsgroups : povray.general : random distribution in an object : Re: random distribution in an object Server Time
4 Nov 2024 21:22:07 EST (-0500)
  Re: random distribution in an object  
From: JC (Exether)
Date: 12 Sep 2003 08:39:12
Message: <3f61be70@news.povray.org>
You can check that the bounding box edges of the object you insert are 
also inside the object in which you insert, that still isn't perfect but 
you can generalise that to check that condition on points of a grid 
within the object you want to insert, that way you would asymptotically 
get close to the solution.

But sometimes you insert such small objects that you don't really need 
to check that they don't come out.

JC

Warp wrote:
> Christoph Hormann <chr### [at] gmxde> wrote:
> 
>>Have a look at the inside() function.  It works for all objects ith well 
>>defined inside and outside (like isosurfaces)
> 
> 
>   You can place *points* inside an object with this method. However, how
> can you place objects with dimensions randomly inside another object (and
> be sure that no part of the first object comes out of the second)?
>


Post a reply to this message

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