Ejemplo n.º 1
0
        private BBox3D ComputeLoadBBox3D()
        {
            BBox3D     bbox          = new BBox3D();
            bool       hasInterlayer = false;
            double     zInterlayer   = 0.0;
            Layer3DBox layer0        = GetBoxLayer(0, ref hasInterlayer, ref zInterlayer);

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

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

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