Page 1 of 1

Generate height lines on a pointcloud

Posted: Sun Jul 07, 2019 1:27 pm
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

Re: Generate height lines on a pointcloud

Posted: Sun Jul 07, 2019 5:41 pm
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)

Re: Generate height lines on a pointcloud

Posted: Wed Jul 10, 2019 6:30 am
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 !

Re: Generate height lines on a pointcloud

Posted: Thu Jul 11, 2019 8:26 pm
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.