Connectivity API reference

Some of the graph-like connectivity algorithms which are typically applied to meshes but may be used elsewhere are exposed here.

motmot.connectivity.connected(polygon_map, initial, mask=None)[source]

Find all nodes connected to the initial node(s).

motmot.connectivity.group_connected(polygon_map, mask=None)[source]

Group all connected nodes.