Validation and automatic repair of planar partitions using a constrained triangulation door