Changed the analyse_interface_properties.cpp. Now the output is directly the x-coordinate or the z-coordinate.