xyz_from_q

compas_tno.algorithms.xyz_from_q(q, Pi, Xb, Ci, Cit, Cb, SPLU_D=None)[source]

Calculate coordinates’s xyz the q’s.

Parameters
  • q (array [m x 1]) – Force densities of all edges.

  • Pi (array [ni x 3]) – External forces applied to the free vertices.

  • Xb (array [nb x 3]) – Position of the fixed vertices.

  • Ci (array [m x ni]) – Connectivity matrix on the free vertices

  • Cit (array [ni x m]) – Transpose of connectivity matrix on the free vertices

  • Cb (array [m x nb]) – Connectivity matrix on the fixed vertices

  • SPLU_D (callable, optional) – Sparse LU decomposition of CitQCi to speed up optimisation, by default None

Returns

Xfree (array [ni x 3]) – x, y, z coordinates of the nodes