xsect.calc.multi_centroid¶
-
xsect.calc.
multi_centroid
(add, subtract=[])[source]¶ Returns the centroid for cross sections including multiple shapes. Returns an array of shape (2,).
Parameters: - add : list
A list of (x, y) boundary coordinates for shapes included in the cross section. Each set of boundary coordinates should be of the shape (N, 2).
- subtract : list
A list of (x, y) boundary coordinates for cut out shapes to be subtracted from the cross section. Each set of boundary coordinates should be of the shape (N, 2).