Added three mesh types support.