#9777: Define repairGeometry() method