Object Partitioning based on a new dynamic strategy for shape diameter analysis