Recalculating normals in bmesh

When working with mesh geometry through the bmesh object, we can “recalculate” the normals – rotate the normals in the opposite direction, starting from the direction of the normals of neighboring polygons.

Let’s create a bmesh object and store the geometry of the currently selected mesh into it.

To recalculate the direction of the normals, we can use the recalc_face_normals() operator.

The parameters passed to the operator are the bmesh object and the list of polygons for which normals need to be recalculated.

Then we will return the corrected geometry to the active mesh.

0 0 votes
Article Rating
Notify of

0 Comment
Inline Feedbacks
View all comments