pysdic.PointCloud.from_dict#

classmethod PointCloud.from_dict(data, *, load_properties=True)[source]#

Create a point cloud from a dictionary.

The dictionary must contain the key "coordinates" with an array of shape \((N_p, E)\). The properties are read from the keys "_property/{property_name}".

Note

The dictionary is flat (one level), as required by the NPZ format. See pysdic.core.serialization.NpzSerializerMixin.

Parameters:
  • data (Dict[str, Any]) – The dictionary to read.

  • load_properties (bool, optional (default: True)) – If False, the properties are ignored.

Returns:

The new point cloud.

Return type:

pysdic.PointCloud