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.
unfold / unroll cylinder and point cloud
Re: unfold / unroll cylinder and point cloud
Daniel, CloudCompare admin
Re: unfold / unroll cylinder and point cloud
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: 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.
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: 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
Re: unfold / unroll cylinder and point cloud
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.
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.
Re: unfold / unroll cylinder and point cloud
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).
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