pysdic.PointCloud.remove_dimension#

PointCloud.remove_dimension(dim, *, propagate_properties=True)[source]#

Remove one coordinate axis, giving a point cloud of shape \((N_p, E-1)\).

For example, with \(E=3\), dim=1 removes the \(y\) axis.

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

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

Returns:

The point cloud without the given axis.

Return type:

pysdic.PointCloud

Raises:

ValueError – If dim is out of range or if \(E = 1\).