Plotting example

No suitable bulit-in plotting function for LSVG in Matlab, nor found on-line

Converting hundreds of millions active voxels to a huge face/node polygon list for plotting takes time

Made a custom plotting function using all available CPU cores

  • "function plotVox(vM, varargin)"
    • Creating a 3D cross window
    • Iterating all active voxels in vM with the cross window to find surface voxels
    • Iterating all surface voxels to generate face/node polygon list of each face pointing out of the solid
    • Sending the face/node polygon list to Matlabs "patch" function

For the 25M active voxel example, processing time ca. 1 min

1:23 - RobinGen