unfold / unroll cylinder and point cloud

Feel free to ask any question here
Post Reply
daniel
Site Admin
Posts: 7712
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: unfold / unroll cylinder and point cloud

Post by daniel »

Well, actually these tools have been originally added to CloudCompare to do the exact same thing (and the conical shape was even more conical). Of course you have to set the right axis point, and make sure the cylinder /cone axis is aligned with X, Y or Z. And the last tricky part is probably to guess where the cone apex is.

Don't hesitate to send me the cloud (admin [at] cloudcompare.org) so that I can try on my side.
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7712
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: unfold / unroll cylinder and point cloud

Post by daniel »

For the records, thanks to Andrea's files I was able to fix/improve the unroll tool. This is available in the latest 2.11.alpha version.

One can now set the angular range of the unroll tool for all modes (i.e. also the conical projections).

Otherwise, the former 'straightened cone' mode has now two flavors (with 'fixed radius' as before, or with a corrected radius based on the theoretical cone shape).

Here's the result:
UnrollCompensatedRadius.JPG
UnrollCompensatedRadius.JPG (153.13 KiB) Viewed 4786 times
P.S.: mind that the unrolled clouds are not at the same height because the 'cylinder unrolling' method uses the Z altitude directly, while the 'cone unrolling' method uses the curvilinear abscissa (starting from the cone apex). It's easy to manually reposition the unrolled cone if necessary.
Daniel, CloudCompare admin
muzo583
Posts: 30
Joined: Wed Nov 19, 2014 6:19 pm

Re: unfold / unroll cylinder and point cloud

Post by muzo583 »

Hi Daniel,
Could you provide a reference for the mathematical background of this application? And if possible, can we save the unroll parameters after processing point cloud and then roll the point cloud back?
Bests.
daniel
Site Admin
Posts: 7712
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: unfold / unroll cylinder and point cloud

Post by daniel »

Hum, there's no documentation apart the code itself:
https://github.com/CloudCompare/CloudCo ... .cpp#L3656
https://github.com/CloudCompare/CloudCo ... .cpp#L3671

And there's no way to re-roll the cloud currently either.

However, the 2.13.beta version gives much more options, and especially the option to use an entity to 'read' the parameters (axis, radius, etc.). So it may be a way to save most of the parameters between 2 sessions of CC (simply save the cylinder or cone entity as a separate .bin file).
Daniel, CloudCompare admin
Post Reply