Repair a mesh with correction geometries
Download and open the project
Mesh outputs sometimes have errors on tall buildings with large reflective surfaces. Reflective and very smooth surfaces can cause problems for the reconstruction process because the lack of texture prevents accurate point matching between images. This results in sections of building facade where the mesh is incomplete. These defects can be repaired by creating and applying correction geometries.
First, you'll download and open a project to repair a missing segment of mesh on a tall reflective building.
- Download the Reality_TrainingData03.zip file and locate the downloaded file on your computer.
Note:
This file has a size of 11.7 GB, so it may take several minutes to download. Most web browsers download files to your computer's Downloads folder by default.
- Extract the zipped data to your C:\ drive.
Note:
Most extraction programs enable you to choose the output location of the extracted file. Ensure your output location is C:\ before running the program.

The folder is extracted. Its path is C:\Reality_TrainingData03.
Caution:
The path for the data should be exactly C:\Reality_TrainingData03.
- Open the extracted Reality_TrainingData03 folder and open the RS_FRA_part3 folder, then double-click the RS_FRA_Part3 project file.

- If you are prompted to stop contributing to the previous project, click OK.
The project opens. The Globe pane shows a region of interest with two tall buildings. The shorter of the two has a missing section of facade.

- Expand the Navigator.

- Click and drag the interior ring to tilt and rotate the view to explore the defective surface.

To fix this defect, you'll draw correction geometries, which indicate the true shape of the building for the reconstruction process.
Create a correction geometry
Now you'll create a correction geometry to repair the defect in the mesh on the building facade.
- On the ribbon, click the Home tab. In the Input group, click Geometries and choose Create Geometry.

The Create tool appears.
- For Geometry Name, type Mesh_Edit_Fra.

- For Geometry Type, choose Correction.

- For Spatial Reference, choose Frankfurt_Part3.

- Click Create.
The new correction geometry layer is added to the Project Tree pane.

The new layer is automatically selected. While it is selected, the Edit tab becomes visible on the ribbon.
Add a correction polygon
You'll digitize a polygon in the correction layer, forming a vertical plane that fits the edges of the building to patch the defect.
- Use the Navigator to position the building so its western side is facing you.

The taller building will be behind the building with the defect. In the following image, the yellow rectangle shows where you'll add the polygon.

- On the ribbon, on the Edit tab, in the Features group, click Create Polygon.

- Move the pointer to the lower left edge of the building.

The pointer snaps to the mesh at a vertex on the lower left edge.
- Click the edge of the building mesh to add a vertex.
Note:
You can use the Undo button to delete a vertex if it is not correctly placed.
- Move the pointer to the upper left edge of the building and click it to add a vertex.

- Move the pointer to the upper right edge of the building and click it to add a vertex.

As you move the pointer to the upper right edge, a red highlight color shows the plane that you are defining.
- Move the pointer to the lower right edge of the building and double-click it to add a vertex.

Double-clicking closes the polygon.

Note:
You can use the Discard button to delete the polygon if it is not correctly placed.
- Click Finish.

You've created a correction geometry for this side of the building facade. Next, you'll use the same technique to add a second correction polygon for the other facade.
Add a second correction polygon
The building has a second facade not properly reconstructed. You'll add another correction polygon to repair it.
- Rotate the view to make the other defective side face you.

- On the ribbon, on the Edit tab, in the Features group, click Create Polygon.
- Add a vertex on the lower left edge of this face of the building.

- Add a vertex at the upper left edge.

- Add a vertex at the upper right edge.

- Double-click the lower right edge of this face to add a vertex and finish the polygon.

- Click Finish.
The second correction polygon is finished.

- On the ribbon, click Save. Click Yes.

The correction geometries have been added. Next, you'll repair the mesh.
Update the reconstruction
To incorporate the edits into the mesh, the existing reconstruction must be updated with the correction geometry.
- In the Project Tree pane, in the Reconstructions section, right-click REC_3D_FRA_Part3 and choose Settings.

The Reconstruction pane opens.
- Scroll down the Reconstruction pane to the Optional section.
- For Correction Geometries, choose Mesh_Edit_Fra.

- Click Save.
- In the Reprocess Reconstruction warning, click OK.
- On the ribbon, on the Reconstruction tab, click Start Contribution.

The Process Manager pane shows the current task. Reprocessing the mesh will take about 15 minutes on recommended hardware.
- When the processing is complete, in the Project Tree pane, on the Visualization tab, in the Reconstructions section, turn on the Mesh layer.
- On the Visualization tab, in the Geometries section, turn off the Mesh_Edit_Fra layer.
- Rotate the view and examine the repaired building.

- Click Save project.
In this tutorial, you learned how to add correction geometries to patch reconstruction errors in a mesh layer. You also learned how to reprocess the reconstruction to repair the mesh.
You can find more tutorials in the tutorial gallery.
