public DrawingStatus()
 {
     _eye = new Vertex();
     _projector = new Vertex();
     _kinect = new Vertex();
 }
 public void CalculateLocation()
 {
     if (this.Type != BuildingObjectType.Outside)
     {
         this.Location = new Vertex();
         foreach (BuildingObject child in Childs.Values)
         {
             child.CalculateLocation();
             this.Location.x += child.GetLocation().x;
             this.Location.y += child.GetLocation().y;
             this.Location.z += child.GetLocation().z;
         }
         this.Location.x /= Childs.Count;
         this.Location.y /= Childs.Count;
         this.Location.z /= Childs.Count;
     }
     else
     {
         int allCount = 0;
         this.Location = new Vertex();
         foreach (Vertex vertex in this._object.Vertexs)
         {
             this.Location.x += vertex.x;
             this.Location.y += vertex.y;
             this.Location.z += vertex.z;
             allCount++;
         }
         this.Location.x /= allCount;
         this.Location.y /= allCount;
         this.Location.z /= allCount;
     }
 }