I’m running a multi-body simulation of a vehicle driving on a rocky terrain
and need to get the elevation data of the terrain.
The terrain is built from 2 parts:
2D grid of elevation data.
“Rocks” which are defined as low-poly polygonal meshes, scattered on the grid.
I need to combine the 2 parts to get a single grid representing elevation
data, including the rocks. Note that the grid of the surface is finer than that of the polygonal mesh rock, which have only a few vertices.
I’m not sure if this is the right approach but I can store the terrain and polygonal mesh as separate vtkPolyData objects, probe the polygonal mesh on the terrain and extract a new object containing the combined elevation surface polydata.