POV-Ray : Newsgroups : povray.binaries.images : crash on modified sample file : Re: crash on modified sample file Server Time
16 Aug 2024 22:15:45 EDT (-0400)
  Re: crash on modified sample file  
From: Mike Williams
Date: 13 Dec 2001 13:03:49
Message: <5NvJ8CAtFGG8Ew+1@econym.demon.co.uk>
Wasn't it marabou who wrote:
>
>where lies the secret of the non-intersectional balls? in the 
>trace()-function? is there a way for this in v3.1?

In 3.1 you just keep an array of the positions of the balls (and an
array of their sizes if different). Each time you try to add a sphere at
a random position, you check to ensure that vlength(newposition-
oldposition) is less than the sum of the two radii for each of the
existing spheres.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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