private BBox3D ComputeLoadBBox3D()
        {
            BBox3D   bbox          = new BBox3D();
            bool     hasInterlayer = false;
            double   zInterlayer   = 0.0;
            BoxLayer layer0        = GetBoxLayer(0, ref hasInterlayer, ref zInterlayer);

            bbox.Extend(layer0.BoundingBox(Analysis.PackProperties));
            BoxLayer layerN = GetBoxLayer(LayerCount - 1, ref hasInterlayer, ref zInterlayer);

            bbox.Extend(layerN.BoundingBox(Analysis.PackProperties));
            return(bbox);
        }
Exemplo n.º 2
0
        private BBox3D ComputeLoadBBox3D()
        {
            BBox3D bbox   = new BBox3D();
            int    iLayer = 0;

            while (iLayer < Count)
            {
                ILayer   layer  = this[iLayer];
                BoxLayer blayer = layer as BoxLayer;
                if (null != blayer)
                {
                    bbox.Extend(blayer.BoundingBox(Analysis.BProperties));
                }
                ++iLayer;
            }
            return(bbox);
        }