PCDLoader parse/parseAsync (web worker)

Hi,
I finally had the time to apply the generic Builder and WorkerSupport (extracted from OBJLoader2 to LoaderSupport in release 88) to another loader. I chose PCDLoader as it is not too complex and someone asked me whether a worker based version of it could be created. See the prototype here:
https://kaisalmen.de/proto/test/pcd/webgl_loader_pcd.html
Code:
https://github.com/kaisalmen/WWOBJLoader/blob/Issue10/src/loaders/PCDLoader.js

I extracted main parsing functionality into a Parser object which can be used directly or wrapped into a web-worker. LoaderSupport & Builder needed some minor modification, but apart from that the whole concept can be applied to other workers. :smile:

Kai

Your code only works for binary PCD, not for ASCII PCD
I get the following error:
THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.