Updated the vertex processing logic - polylists are now correctly handled.