POV-Ray : Newsgroups : povray.general : Realy uniform points on sphere : Re: Realy uniform points on sphere Server Time
2 Aug 2024 10:26:13 EDT (-0400)
  Re: Realy uniform points on sphere  
From: Shay
Date: 19 Nov 2004 09:50:25
Message: <419e0831$1@news.povray.org>
Rafal 'Raf256' Maj wrote:
> Hi,
> is there a macro to place points realy uniformly (in almost distances from 
> each point to it's neighbours)?
> 
> VRand_On_Sphere() places each point correclty, but it doesnt care about 
> other points, so when used in loop - the resulting _group_ of points isnt 
> so uniformly placed.
> 
> This problem is simmilar to finding good points/vectors to be used in 
> radiosity directions AFAIK (but it's about full sphere, not half of it).
> 
> 

As I understand it, there are only a few truly uniform distributions. If 
you're not overly particular about the exact number of points, you can 
just start with one of the platonic solids (I think the best looking 
distributions come from a cube, icosahedron might give the closest to 
even) and keep diving the faces to get a relatively even distribution.

If you're just talking about just a few points, Tim Nikias has IIRC an 
electrostatic repulsion macro on his website.

  -Shay


Post a reply to this message

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