Fixed Glazing Ratio

Fixed a Bug that was causing it to fail in rare oblique cases.