pysdic.PointCloud.from_npz#
- classmethod PointCloud.from_npz(filepath, load_properties=True)[source]#
Create a
PointCloudobject from a NumPy NPZ file.The NPZ file should contain an array named ‘points’ with shape \((N_p, E)\) representing the coordinates of the points. Additional properties can be stored as separate arrays in the NPZ file.
See also
to_npz()method for saving the point cloud to a NPZ file.
- Parameters:
- Returns:
A
PointCloudobject containing the points and properties read from the NPZ file.- Return type:
Examples
Creating a
PointCloudobject from a NPZ file.1from pysdic import PointCloud 2# Create a point cloud from a NPZ file 3point_cloud = PointCloud.from_npz('path/to/point_cloud.npz')
Now,
point_cloudis aPointCloudobject containing the points and properties read from the specified NPZ file.