Modified Glazing based on ratio

Cleaned the method for offset curve on surface and added some extra
check so the component doesn't turn red. The component still doesn't
work for some of the surfaces.