POV-Ray : Newsgroups : povray.binaries.images : Re: Random points on surface of an object (in advanced-users) : Re: Random points on surface of an object (in advanced-users) Server Time
4 Nov 2024 20:14:24 EST (-0500)
  Re: Random points on surface of an object (in advanced-users)  
From: Thomas de Groot
Date: 20 Feb 2007 07:59:14
Message: <45daf0a2$1@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> schreef in bericht 
news:45dad2e5@news.povray.org...
> This works sorta, but you need to know the spline,
> and it isn't a very good distribution on the sharp bends.
>
> #declare rsd = seed(1);
> union {
> #local c = 0;
> #while (c<500)
>   object{Thorn
>   rotate 360*rand(rsd)*z
>   Spline_Trans(Stem, rand(rsd), y, 0.01, 0.01)
>   }
>   #local c = c + 1;
> #end
> }
>


Yes, this is another possibility for a more cactus-like object. I shall try 
that too!

Thanks a lot, Tim.

Thomas


Post a reply to this message

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