POV-Ray : Newsgroups : povray.newusers : Uniform placing sphere : Re: Uniform placing sphere Server Time
4 Nov 2024 13:03:26 EST (-0500)
  Re: Uniform placing sphere  
From: Micha Riser
Date: 20 Apr 2003 13:26:31
Message: <3ea2d847@news.povray.org>
Rafal 'Raf256' Maj wrote:

> how can I distribute some points randomly on sphere, but that they would
> be +/- in same range from each oter (uniformly) ?
> 

make random points in the cube <-1,-1,-1>,<1,1,1> and if their 
distance from origin is <1 project them on the sphere otherwise throw them 
away


-- 
POV-Ray Objects Collection: http://objects.povworld.org


Post a reply to this message

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