Cross-sections with CloudCompare
How to extract cross-sections at a regular interval along a profile from a point cloud in CloudCompare, and export them to CAD as DXF.
Clicking loads the video from YouTube: Google will receive your IP address and may store data on your device. Privacy · Watch it on YouTube
In this article I’ll explain how to extract cross-sections with CloudCompare at a regular interval along a profile drawn on a point cloud.
I had written an article (which you can find here) explaining how to extract a section from a point cloud with CloudCompare.
While I was finishing it, poking around the menus, I discovered another very interesting way to get sections out and import them into CAD.
You draw a reference profile, and the software draws sections perpendicular to it, at a regular interval and with a width you set.
Rather than lengthen the old article, I chose to write a new one.
So allow me to skip the introduction on point clouds and CloudCompare, which you’ll find in the previous article anyway, and go straight to the practical part.
You can download the point cloud I used in this example here.
Sections at a regular interval
Open CloudCompare and load the point cloud’s .las file.
Select the point cloud in the DB Tree window and then go to the menu Tools – Segmentation – Extract Sections / Unfold.
Now you have to draw a polyline representing the profile along which the software will create the sections perpendicular to it.
Once you’ve finished the polyline, clicking its icon in the menu at the top right activates the other tools.

With the “Generate orthogonal sections” tool you can choose the distance between one section and the next and the width of the sections perpendicular to the profile you drew a moment ago.

The software will show you the traces of the sections it has generated, and with the Extract sections tool you can export them as a point cloud, as a profile (polyline) or both.
I chose to extract the profiles only, and after confirming the command you’ll see all the new sections appear in the DB Tree panel on the left of the screen.

Here are all the sections made with CloudCompare, at the interval and width set.

Exporting the sections to CAD
Now you can export the sections CloudCompare generated in dxf format and open them in a CAD (or GIS).
Select the section(s) you want to export in the DB Tree panel, then use Save as and choose the dxf format.
Once in CAD you can work on the sections however you like.
You’ll have 3D polylines whose vertices all have the coordinates of the original point cloud.
So, if the points are properly georeferenced, the polyline vertices will have correct, real easting, northing and elevation.
Not bad!

I hope I’ve added another useful piece of information for your use of CloudCompare.
If you need information or details about this open-source software, feel free to write to me; if I can help, I’ll gladly do so.
See you soon!
Paolo Corradeghini
Below is a video from my YouTube channel on this very topic, sections of a point cloud. The video is in Italian.