예제 #1
0
        /// <summary>
        /// Computes a new boundingbox that is the smallest axis aligned
        /// boundingbox that contains the transformed result of its 8 original corner
        /// points.
        /// </summary>
        /// <returns>A new bounding box.</returns>
        public BoundingBox TransformBoundingBox(BoundingBox bbox)
        {
            BoundingBox rc = bbox;

            rc.Transform(this);
            return(rc);
        }
예제 #2
0
        /// <summary>
        /// Aligned bounding box solver. Gets the world axis aligned bounding box for the transformed geometry.
        /// </summary>
        /// <param name="xform">Transformation to apply to bounding box after calculation.
        /// The geometry is not modified.</param>
        /// <returns>The bounding box of the transformed geometry in world coordinates
        /// or BoundingBox.Empty if not bounding box could be found.</returns>
        /// <since>6.10</since>
        public override BoundingBox GetBoundingBox(Transform xform)
        {
            BoundingBox bbox = BoundingBox.Empty;

            bbox = InternalGetBoundingBox();
            bbox.Transform(xform);
            return(bbox);
        }