points module

Warning! EXPERIMENTAL:

these features and functions are under development, will have bugs, and may be heavily modified in the future

Tools for importing and working with point clouds - OBJ loader, requires pywavefront - PLY loader, requires plyfile - LAS loader, requires laspy

These functions ported from my viz script repo here: https://github.com/mivp/vizscripts/tree/master/pointcloud More tools can be found there, including a ptx reader which handles transformations of multiple point clouds into one coord space

Module Summary

functions:

points.loadpointcloud

Attempt to load the passed point cloud file based Pick loader based on extension

Module Details

functions:

loadpointcloud(filename, subsample=1, dtype=<class 'numpy.float32'>, components=['x', 'y', 'z', 'red', 'green', 'blue', 'alpha'])

Attempt to load the passed point cloud file based Pick loader based on extension

Parameters
  • str (filename,) – Full path to file to load

  • int (subsample,) – Subsample factor, sample every Nth point

  • numpy.dtype (dtype,) – Type of data

  • list (components,) – List of components per point

Returns

  • vertices (array) – numpy array x,y,z

  • colours (array) – numpy array r,g,b or r,g,b,a