Generate height lines on a pointcloud

Feel free to ask any question here
Post Reply
AdrienB
Posts: 3
Joined: Sat Dec 23, 2017 6:44 pm

Generate height lines on a pointcloud

Post by AdrienB »

Hi there,

First thanks for your work and thanks to all the community !

Here is my problem,
I'm looking for a solution to make appear Z height data on a pointcloud of a ground surface and export it as an orthoimage.
Something like an IGN map with some height lines ( example : https://www.gps-globe.com/1637-atmn_lar ... 25-000.jpg )

I even tried it with 2 process :


- Cross section > Z thickness section > Export multiple slices
...
This is not exactly what I want to do, I don't have to slice, but I remember that it's possible to extract contour so ..
But the result is pretty bad, it's not a volume but a surface so I've some artifacts, bad lines ... I tried lot of " Max edge length " value but nothing works fine !

-Edit > color > height ramp > banding
It's exactly what i'm looking for, but the result looks like a gradient of black and white and I want some regular lines each step I define

Is there any solution to make it ?

Hope i'm clear !

Great day
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Generate height lines on a pointcloud

Post by daniel »

You should take a look at the 'Rasterize' tool, and more especially the 'Contour plot generation' option:
https://www.cloudcompare.org/doc/wiki/i ... generation

And to get nice colors associated to the Z coordinate of points, you should:
1) export the Z coordinates as a scalar field (https://www.cloudcompare.org/doc/wiki/i ... )_to_SF(s))
2) define a custom color scale with specific colors associated to specific heights (https://www.cloudcompare.org/doc/wiki/i ... es_Manager)
Daniel, CloudCompare admin
AdrienB
Posts: 3
Joined: Sat Dec 23, 2017 6:44 pm

Re: Generate height lines on a pointcloud

Post by AdrienB »

Hi daniel

Thanks, it's exactly what i'm looking for,
I tried many times before having a nice results,
The reasons was my " grid : step [value] " was too low, the size of my grid was ~ 10000x10000 and the result was some points, with 1200x1200 size, I have great lines.
Can you explain me why ?

Thanks a lot !
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Generate height lines on a pointcloud

Post by daniel »

If your step size is too small, then your grid is actually full of holes. And the contours lines are basically contouring all the isolated points.
Daniel, CloudCompare admin
Post Reply