hull_centroid

openpnm.topotools.hull_centroid(points)[source]

Computes centroid of the convex hull enclosing the given coordinates.

Parameters

points (Np by 3 ndarray) – Coordinates (xyz)

Returns

centroid – A 3 by 1 Numpy array containing coordinates of the centroid.

Return type

array