add 2d mesh detection