# Anim8or Community

• September 15, 2024, 10:06:53 pm
• Welcome, Guest

### News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Pages: [1]

### AuthorTopic: Bounding box calculation trouble in script.(Solved)  (Read 8630 times)

#### Astd ganlo

• Newbie
• Posts: 2
##### Bounding box calculation trouble in script.(Solved)
« 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.
« Last Edit: October 18, 2009, 02:33:17 pm by Astd ganlo »
Logged

#### Claude

• Sr. Member
• Posts: 285
##### Re: Bounding box calculation trouble in script.
« Reply #1 on: October 17, 2009, 10:55:41 pm »

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.
Logged

#### Astd ganlo

• Newbie
• Posts: 2
##### Re: Bounding box calculation trouble in script.
« Reply #2 on: October 18, 2009, 02: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.
Logged
Pages: [1]