datastructure_centroid

compas_3gs.utilities.datastructure_centroid(datastructure)[source]

Compute the centroid of the datastructure.

Parameters

datastructure – A network, mesh or volmesh object.

Returns

list – The coordinates of the centroid.