Irregular shaped point clouds
#2
It is currently not possible to create a 3D surface from irregular point cloud. Also contour lines can be calculated only from height map.

But you may be able to convert a point cloud into height data - a 2-dimensional array where each array element contains a height value. This may be created from point cloud by going through each position and first determine into which array element the position would go (for example convert x,z => array[xIndex, yIndex]; xIndex = ((x - xMin) / (xMax - xMin)) * arrayXDimension). Then add the y values into the array (and have another array that will count the number of items in each array item - this is needed to average the value at the end). I hope that is this not described in too complicated way.

When you have that you can use a height map to show the surface and calculate contour lines.

I have just updated the contour lines sample so that the sample shows how to hide the parts of the surface with zero values (see the updated code on GitHub: https://github.com/ab4d/Ab3d.PowerToys.W...ample.xaml and https://github.com/ab4d/Ab3d.PowerToys.W...le.xaml.cs)

This is not ideal but depanding on the data may in same case give you results that are good enough.
Andrej Benedik
  


Messages In This Thread
RE: Irregular shaped point clouds - by abenedik - 09-06-2021, 04:12 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)