POV-Ray : Newsgroups : povray.binaries.images : vlength [14.7kb] : Re: vlength [14.7kb] Server Time
2 Nov 2024 03:13:43 EDT (-0400)
  Re: vlength [14.7kb]  
From: Jide
Date: 5 Jan 2002 08:56:33
Message: <3c370611$1@news.povray.org>
marabou wrote:
> soemthing curious happened as i tried out vlength.
> my aim was to put random spheres on the floor and the code itself has to
> avoid intersections.
> whenever i test about vlength i always get intersections between spheres.
> my formular
> #if ( (vlength(Mylist[Temp]-Random_Place)) > (2*Radi) )

I think the problem in your code is that if even at one point the vlength >
2*Radi (and the propability is quite high for that) then it doesn't matter
if at some other point the vlength < 2*Radi.

I'd correct the code for you but my brain isn't functioning properly atm :)

-Jide


Post a reply to this message

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