pysdic.PointCloud.insert_dimension#

PointCloud.insert_dimension(dim, value=0.0, *, propagate_properties=True)[source]#

Insert a new coordinate axis, giving a point cloud of shape \((N_p, E+1)\).

For example, with \(E=2\), dim=2 adds a \(z\) axis after \((x, y)\).

Parameters:
  • dim (Integral) – The index of the new axis, in \([0, E]\).

  • value (Union[Real, ArrayLike], optional (default: 0.0)) – The coordinates along the new axis: one value for all the points, or an array of shape \((N_p,)\).

  • propagate_properties (bool, optional (default: True)) – If False, the new point cloud has no properties.

Returns:

The point cloud with the new axis.

Return type:

pysdic.PointCloud