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:13:54 EST (-0500)
  Re: Random points on surface of an object (in advanced-users)  
From: Tim Attwood
Date: 20 Feb 2007 05:52:21
Message: <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
}


Post a reply to this message


Attachments:
Download 'thorn.jpg' (69 KB)

Preview of image 'thorn.jpg'
thorn.jpg


 

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