weight.classes Handle empty polygons