Anim8or Community

General Category => ASL Scripts => Topic started by: Astd ganlo on October 18, 2009, 12:10:40 am

Title: Bounding box calculation trouble in script.(Solved)
Post by: Astd ganlo on October 18, 2009, 12:10:40 am
 :( i'm trying to calculate a 3D bound box using mesh points in a script.
Oh it's a exporter. does min() and max() functions calculate array of floats
i'm trying to calculate multiple values. I'm not beginner to anim8or in case of that question.
Title: Re: Bounding box calculation trouble in script.
Post by: Claude on October 18, 2009, 02:55:41 am
float min(float a, float b);     // minimum
float max(float a, float b);     // maximum

They compare 2 floats a b and return the min or max of the 2 values.
Title: Re: Bounding box calculation trouble in script.
Post by: Astd ganlo on October 18, 2009, 06:32:46 pm
Hmm well i mean't like this:
float $bbox[5];
min($bbox[5],0);
I'm trying to calculate a whole array but never mind thanks anyway.
I found another way so this solved by using a Cube Shape for bound box ;) thank you very much.