Thread: X Y Z
View Single Post
Old 5th June 2007, 04:56 AM   #4
Andy
Administrator
Professional user
 
Andy's Avatar
 
Join Date: Jun 2003
Posts: 4,563
Default Re: X Y Z

Try:

Code:
Prototype int ac_object_find_bound(ACObject *ob, Point3 *max, Point3 *min); // returns 0 if no geometry (therefore bb is invalid)
then something like this:

Code:
 
Prototype void find_box_size(Point3 *max, Point3 *min, Point3 *out)
{
Point3 diff = *max;
 
SUBTRACTPOINTS(min, &diff);
ABSPOINT(&diff);
*out = diff;
}
Andy is offline   Reply With Quote