up edges mesh filter and fix compilation