centroid for non-basic shapes