def highestPoint(list_of_points, a=None):
    highest = []
    #-- Sort the points
    sorted_points = sorted(list_of_points, key=lambda x: (x[0], x[1], x[2]))
    #-- Last one is the highest one
    if a is not None:
        equalZ = True
        for i in range(-1, -1 * len(list_of_points), -1):
            if equalZ:
                highest = sorted_points[i]
                if highest[2] != a[2]:
                    equalZ = False
                    break
            else:
                break
    else:
        highest = sorted_points[-1]
    return highest
Finds the highest point from a three-dimensional tuple list.
dataset/ETHPy150Open tudelft3d/CityGML2OBJs/polygon3dmodule.py/highestPoint