weights_from_xyz

compas_tno.algorithms.weights_from_xyz(xyz, F, V0, V1, V2, thk=0.5, density=20.0)

Compute the tributary weights based on the assembled sparse matrices linking the topology

Parameters:
xyzarray [n x 3]

The XYZ coordinates of the thrust network

Farray [f x n]

Linear transformation from X [n x 3] to c [f x 3] with the position of the centroids

V0array [g x n]

Mark the influence of the original point in the calculation

V1array [g x n]

Mark the influence of the neighbor points the calculation

V2array [g x f]

Mark the influence of the centroid points the calculation

thkfloat, optional

The thickness of the structure to compute the tributary volumes, by default 0.5

densityfloat, optional

The density of the structure to compute the applied vertical loads, by default 20.0

Returns:
pzarray [n x 1]

The vertical loads applied ar each node