POV-Ray : Newsgroups : povray.general : How can we check if an object is within another object? : Re: How can we check if an object is within another object? Server Time
27 Apr 2024 14:29:30 EDT (-0400)
  Re: How can we check if an object is within another object?  
From: Le Forgeron
Date: 14 Jun 2020 10:41:34
Message: <5ee6371e@news.povray.org>
Le 14/06/2020 à 14:08, Bald Eagle a écrit :

> It looked right to me when I coded it...   But then of course so many things do
> ;)  :D

> #declare LOWEST = 10;// big enough to start
> #for(i, 0, 3, 0.01)
>  #local Pt = <Sp(i).x, 0, Sp(i).y>;
>  #local LENGTH = vlength(Pt);
>  #declare LOWEST = min (LOWEST, LENGTH);
> #end
> 


Nope, you forget to adjust the #for to 0...Numpoints-2


Post a reply to this message

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