• Parameters

    • graph: FOLD

      a FOLD object

    • point: number[]

      the point to find the nearest vertex

    Returns number

    the index of the nearest vertex

    Description

    Iterate through all vertices in a graph and find the one nearest to a provided point. This is the only of the "nearest" graph operations that works in 3D.

    Todo

    improve with space partitioning