Align a 3d point cloud so that it would look like a single line

Feel free to ask any question here
Post Reply
Sha11
Posts: 18
Joined: Mon Jun 10, 2019 2:34 pm

Align a 3d point cloud so that it would look like a single line

Post by Sha11 »

Actually I have https://justpaste.it/4tb1h file it contains 3d points x y z, . Now is there any way to know the angle at which it seems like a line, If given is that we have to rotate this point cloud only in x-z plane. ( I mean any logic , which would work in any case like this.. )
daniel
Site Admin
Posts: 7607
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Align a 3d point cloud so that it would look like a single line

Post by daniel »

Well, you can do it manually (with the 'Edit > Translate/Rotate' tool, and constrain the rotation about 'Y').

And to do this more accurately, you could fit a plane (Tools > Fit > Plane) on the cloud, then select the plane in the DB tree, right-click on it, select 'Edit' (you'll need a recent version of CC), and change the 'dip direction' to something like 90 degrees (or 270 degrees). But the trick is that the 'dip direction' is relative to Z by default, and not Y. So you would first have to rotate your cloud (with 'Edit > Apply transformation') in order to transform 'Y' in 'Z', and at the end of the process, apply the inverse rotation... And eventually retrieving the total transformation is not that easy ;)
Daniel, CloudCompare admin
Post Reply