We use this command to smooth a mesh by reducing the presence of unwanted peaks and the roughness of the terrain. The program requests a mesh file, displays the size of the cell on the command line and asks for two parameters:
Radius: What radius of distance do we need to change a vertex. For example, for a mesh with a cell size of one meter: a radius of one meter assumes that each vertex in the mesh is smoothed pursuant to all the sizes of the four cells it comprises.
Iterations: The number of passes that need to be made. The mesh from the previous step is smoothed again using the same radius in each iteration.
On conclusion of the smoothing process, the program will ask for the path in which we intend to store the new smooth mesh and will report how many vertices in the mesh have been changed, in addition to the maximum and average elevation displacement produced.
Remove Spikes
This command enables us to correct a mesh by changing vertices that create spikes in it. On executing the command, we will need to locate a mesh file and the following dialogue box will appear once it has been selected:
![]() First of all, we will see the following for the purpose of reference: the size of the cell and the mesh and the range of elevations. The following three parameters can be adjusted to conduct this process:
Radius: Defines the maximum area occupied by the spike. In the case of spikes formed by a single vertex, a radius equivalent to the size of the cell will suffice, however in other cases it will need to be adjusted in accordance with the size of the area to be cleaned up. The program will suggest a size of four cells by default.
Iterations: The number of times the process is repeated. The removal process will always be repeated several times on the result of the previous iteration. As such, having previously corrected the mesh, the vertices detected as spikes will tend to further reduce the elevation, as each pass in their environment (in the case of spikes formed by more than one vertex) has changed the elevations. This parameter should be proportional to the radius to ensure the spike areas are cleaned up to the greatest extent possible. The program will propose four iterations by default.
Tolerance: Defines the minimum difference in elevation in order to regard a vertex as a spike, when comparing the elevation of the same with the elevations of its surroundings (delimited by the radius). By default, the program will propose that all elevations over 10% of the distance between the minimum elevation and the average elevation of the mesh are regarded as spikes.
On conclusion of the command, it will specify the number of vertices that have been changed (spikes removed) and will ask for the route of the resulting mesh file.
Fill holes
This command is designed to interpolate elevations of holes (islands) in a mesh. In order for the hole to be filled, the mesh needs to have a closed contour line, in other words, all the vertices of the hole must have elevations in the four directions (left, up, right and down).
The command will ask for a mesh file and at the end of the process it will ask for the route of the resulting mesh and indicate the number of vertices that have been changed (not necessarily equivalent to the number of holes. It is the number of vertices to which we have been able to assign an elevation, a hole can be made up of several vertices).
Delete Area
This command can be used to create an island, an area with no information on elevation, in a mesh file. Once the mesh file to be changed has been selected, the program will ask for a polyline, and after removing all the elevations inside the polyline, it will ask the user for the file in which to save the change, which may be the same initial file or a different one.
|