public BoundingBoxSet(BoundingBoxSet bbset) : base(bbset.getModel())
 {
     this.boxes = new List <BoundingBox>();
     foreach (BoundingBox bb in bbset.getBoxes())
     {
         addBox((BoundingBox)bb.clone());
     }
 }
Beispiel #2
0
 public static bool isHitting(BoundingBoxSet boxset1, BoundingBoxSet boxset2)
 {
     foreach (BoundingBox box in boxset1.getBoxes())
     {
         bool t = box.isHitting(boxset2);
         if (!t)
         {
             continue;
         }
         return(t);
     }
     return(false);
 }