예제 #1
0
파일: BvhNode.cs 프로젝트: pritisutar/kelly
        public BvhNode(IIntersectable left, IIntersectable right)
        {
            _left = left;
            _right = right;

            if (left != null) {
                _leftBounds = left.GetBoundingBox();
            }

            if (right != null) {
                _rightBounds = right.GetBoundingBox();
            }
        }
예제 #2
0
        public BvhNode(IIntersectable left, IIntersectable right)
        {
            _left  = left;
            _right = right;

            if (left != null)
            {
                _leftBounds = left.GetBoundingBox();
            }

            if (right != null)
            {
                _rightBounds = right.GetBoundingBox();
            }
        }