Beispiel #1
0
        public OrientedBox GetOrientedBox(TransformMatrix transformMatrix)
        {
            if (_mesh == null)
            {
                return(OrientedBox.GetInvalid());
            }

            OrientedBox orientedBox = new OrientedBox(GetBox());

            orientedBox.Transform(transformMatrix);

            return(orientedBox);
        }
Beispiel #2
0
        public OrientedBox GetOOBB(TransformMatrix transformMatrix)
        {
            if (_mesh == null)
            {
                return(OrientedBox.GetInvalid());
            }

            OrientedBox oobb = new OrientedBox(ModelAABB);

            oobb.Transform(transformMatrix);

            return(oobb);
        }