POV-Ray : Newsgroups : povray.general : center of pointcloud : Re: center of pointcloud Server Time
4 Nov 2024 21:24:00 EST (-0500)
  Re: center of pointcloud  
From: Micha Riser
Date: 18 Sep 2003 16:49:26
Message: <3f6a1a55@news.povray.org>
sascha wrote:

> Is there an algorithm to find the center of a set of points in 3D-space?
> It should minimize the distance to the furthermost point(s)
> 
Yes, there are algorithms for that (The problem ist equivalent to finding a
minimal sphere enclosing all points):

One by J.Ritter, see "An Efficient Bounding Sphere"
http://www1.acm.org/pubs/tog/GraphicsGems/authors.html#R_link

A more efficient one by E. Welzl:
Paper:
http://www.inf.ethz.ch/personal/emo/ps-files/SmallEnclDisks-LNCS555.ps
implementation can be found on
http://www.magic-software.com/Containment.html



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


Post a reply to this message

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