Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing point cloud #61

Open
mghildiy opened this issue Apr 23, 2018 · 5 comments
Open

Editing point cloud #61

mghildiy opened this issue Apr 23, 2018 · 5 comments

Comments

@mghildiy
Copy link

Hi,

I want to customize this repo to tinker with point cloud rendered from a LAS/LAZ file.
Which code files should I start to look into in particular?

Manish

@verma
@hobu

@mghildiy
Copy link
Author

Going through the code, I can see files lazlaz.js and renderer.js playing important roles in bigger picture. laslaz.js loads the las/laz file. And going by the name,renderer.js must be displaying the data in laz/laz file using three.js.
But where do we give input(data read from laz/laz file) to renderer.js?

@verma
Copy link
Owner

verma commented Apr 23, 2018

I would start here:

https://github.com/verma/plasio/blob/master/js/ui.js#L657

This is where the loading happens, it takes a function which returns a promise which resolve with the loaded data (either local or remote), eventually if you trace this function, it should call another function called loadData which will eventually link stuff to Three.js.

@mghildiy
Copy link
Author

Thanks a lot @verma.

@mghildiy
Copy link
Author

mghildiy commented Apr 25, 2018

I was able to link up three modules(lazlaz.js,ui.js,render.js) and understand the flow.
I then made a small change in render.js right at end of ParticleSystemBatcher.prototype.push.

var object = new THREE.Mesh(geometry, new THREE.MeshBasicMaterial( 0xff0000 ) );
var box = new THREE.BoxHelper( object, 0xffff00 );
scene.add(box);

My objective is to add bounding box for the point cloud. It did add a wireframe box, but orientation is perpendicular to the expected direction.

boundingbox

Am I doing it wrongly?

@verma , do you have any insight on this behaviour?

@mghildiy
Copy link
Author

@verma,any input here?
I added a wireframe box as bounding box for point cloud.But alignment is totally unexpected, as shown in above figure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants