Beispiel #1
0
        protected void CalculateBoundingBox()
        {
            if (nodeDict.Count > 0)
            {
                boundingBox = new BoxF();
                boundingBox = ((ShapeNode)nodeDict.Keys.First()).BoundingBox;

                foreach (Node n in nodeDict.Keys)
                {
                    ShapeNode sn = (ShapeNode)n;

                    boundingBox.Extend(sn.BoundingBox);
                }
            }
        }
Beispiel #2
0
 public void Extend(BoxF box)
 {
     Extend(box.ptMin);
     Extend(box.ptMax);
 }
Beispiel #3
0
 public void Extend(BoxF box)
 {
     Extend(box.ptMin);
     Extend(box.ptMax);
 }
Beispiel #4
0
        protected void CalculateBoundingBox()
        {
            if (nodeDict.Count > 0)
            {
                boundingBox = new BoxF();
                boundingBox = ((ShapeNode)nodeDict.Keys.First()).BoundingBox;

                foreach (Node n in nodeDict.Keys)
                {
                    ShapeNode sn = (ShapeNode)n;

                    boundingBox.Extend(sn.BoundingBox);
                }
            }
        }