# Unify Mesh Normals

## <img src="https://3375153115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5uhW8FwQpXQj8tHUULMo%2Fuploads%2F0Vjy16qwezhd9NpYIKHa%2FUNIFY_MESH_NORMALS.png?alt=media&#x26;token=84e2e822-33bd-4381-a28a-d51d388f5453" alt="" data-size="line"> Unify Mesh Normals <a href="#profiles" id="profiles"></a>

The **UnifyMeshNormals** command ensures that all face normals in a mesh object point in a consistent direction. This is particularly useful when cleaning up meshes for 3D printing or exporting them into other software. Consistent normal direction helps prevent errors in rendering or 3D printing, especially in STL/SLA formats.

***

**Steps to Use**

1. Select a single unjoined mesh object.
2. Run the **UnifyMeshNormals** command to adjust the normals of all faces in the mesh so they point to one side of the object.
3. (Optional) After using **UnifyMeshNormals**, you can verify the consistency of the normals by displaying front and back faces in different colors using the **Display Modes Options**.
4. If the command doesn’t seem to affect the mesh, try exploding it and rejoining after ensuring the normals are unified.

***

**Applications**

* **Mesh Repair**: Unifying normals ensures that the mesh has a consistent structure and directionality, which is important for cleaning up the mesh for export or further processing.
* **STL/SLA Printing**: Inconsistent normals can lead to poor 3D print quality, including inverted faces or issues with surface rendering. This command corrects such problems.

***

**Additional Notes**

* A polygon mesh has both **vertex normals** and **face normals**. The **UnifyMeshNormals** command primarily adjusts the face normals to be consistent across the mesh.
* The direction of the face normal is typically determined by the order of vertices in a polygon (clockwise or counterclockwise). You can use the **right-hand rule** to determine the correct normal direction.
* If **UnifyMeshNormals** doesn’t work as expected, try exploding the mesh, correcting the normals, and then rejoining the mesh.

***

**Example Use Case**

1. Import an STL file with holes.
2. Fill the holes in the mesh.
3. Weld the mesh by setting the welding angle to 180° to ensure all vertices are welded together.
4. Run **UnifyMeshNormals** to ensure all face normals point in the same direction.
5. Use the **Flip** command if needed to correct the direction of the normals.
6. Export the mesh in the desired format.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rhinoartisan.com/commands/mesh/mesh-repair/unify-mesh-normals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
