POV-Ray : Newsgroups : povray.general : random distribution in an object : Re: random distribution in an object Server Time
4 Aug 2024 00:25:53 EDT (-0400)
  Re: random distribution in an object  
From: Warp
Date: 12 Sep 2003 05:19:54
Message: <3f618fba@news.povray.org>
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)?

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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