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'])[source]

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

Parameters:
  • filename – Full path to file to load

  • str – Full path to file to load

  • subsample – Subsample factor, sample every Nth point

  • int – Subsample factor, sample every Nth point

  • dtype – Type of data

  • numpy.dtype – Type of data

  • components – List of components per point

  • list – 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