Creates or updates the graph with a network of nodes that describes the open space around its obstacles.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
GKMesh class adds, removes, and arranges nodes to describe the navigable areas around obstacles only when you call this method. Typically, you add or remove several obstacles, then call the
triangulate() method to update the graph. You should also call this method after changing the
After triangulating, the graph reflects the navigability of open space around its obstacles and can be used for any number of
find calls. Changing the list of obstacles requires retriangulating the graph.