IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
BoundingBox.cs
1 using System.Collections;
2 
3 namespace BlenderMeshReader
4 {
5 
6  class BoundingBox{
7 
8  public float[,] vec { get; set; } //An array [8][3] with all corner points of the bounding box
9  public string name { get; set; } //The name of the mesh the bounding box belongs to
10 
11  public BoundingBox()
12  {
13  name = "undefined";
14  vec = new float[8, 3];
15  }
16 
17  public override string ToString()
18  {
19  string result = "";
20  result += name + ": [";
21  for (int i = 0; i < 8; i++)
22  {
23  result += "{";
24  for(int j = 0; j < 3; j++)
25  {
26  if(j != 2)
27  {
28  result += vec[i, j] + ", ";
29  }
30  else
31  {
32  result += vec[i, j];
33  }
34  }
35  result += "}";
36  }
37  result += "]";
38  return result;
39  }
40 
41 
42  }
43 }