Anim8or Community
		General Category => ASL Scripts => Topic started by: Astd ganlo on October 17, 2009, 08:10:40 pm
		
			
			- 
				 :( 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.
			 
			
			- 
				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.
			 
			
			- 
				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.