Function to return x,y,z coordinates of all the segments belonging to the passed structNum