POV-Ray : Newsgroups : povray.binaries.images : Re: Moss Vine test [~30k] : Re: Moss Vine test [~30k] Server Time
1 Aug 2024 04:15:08 EDT (-0400)
  Re: Moss Vine test [~30k]  
From: [GDS|Entropy]
Date: 12 Mar 2009 05:42:48
Message: <49b8d918@news.povray.org>
"[GDS|Entropy]" <gds### [at] hotmailcom> wrote in message
> Do you (or anyone) have any ideas on how to perform an efficient inside() 
> test on not just a single point, but an entire object?

Addendum: I have been using things of the format:
  #if (((vectorArray[i].x <= vectorB.x) & (vectorArray[i].x >= vectorA.x)) & 
((vectorArray[i].y <= vectorB.y) & (vectorArray[i].y >= vectorA.y)) & 
((vectorArray[i].z <= vectorB.z) & (vectorArray[i].z >= vectorA.z)))  etc...

Where vector A and B are min/max extents of object being tested 
against...I'm just not sure that this is the best way...

ian


Post a reply to this message

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