Added handling for interior perimeters to the composite shape.