Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Bounding box calculation trouble in script.(Solved)  (Read 2716 times)

Astd ganlo

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

Claude

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: Bounding box calculation trouble in script.
« Reply #1 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.
Logged

Astd ganlo

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Bounding box calculation trouble in script.
« Reply #2 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.
Logged