Recalculate Normals

This node testing is in progress, so it can be found under Beta menu

Functionality

This node recalculates normals of mesh faces, so that they all point either outside or inside. This is equivalent of Ctrl+N and Ctrl+Shift+N in the edit mode. This node is useful mainly when other nodes create degenerated geometry, or when geometry was generated by low-level operations with vertex indicies. It can be also used to just turn all normals inside out or vice versa.

Inputs

This node has the following inputs:

  • Vertices
  • Edges
  • Polygons
  • Mask. List of boolean or integer flags. Zero or False means do not process face with corresponding index. If this input is not connected, then all faces will be processed.

Parameters

This node has one parameter: Inside flag. The flag changes direction of normals to the opposite. By default, the flag is not set.

Outputs

This node has the following outputs:

  • Vertices. This is just copy of input vertices for convinience.
  • Edges.
  • Polygons.

Example of usage

Visualisation of cube normals turned inside:

https://cloud.githubusercontent.com/assets/284644/6315650/6e5f9d88-ba2a-11e4-84db-624d670ee04d.png

Making normals normal:

https://cloud.githubusercontent.com/assets/5783432/18610773/c0c1ec8c-7d35-11e6-8a0a-b59fda738faf.png