generalizing mesh types