Originally Posted by
User137
Normal for vertex:
- Make a temporary vector T and initialize it 0
- Also start a integer variable Counter = 0
- Start a for loop that goes through faces (F), Next for loop going through each vertex in that face (V), Pick each face that connects to the vertex V and belongs to the same smoothing group as face F:
- - Add face normal vector to T
- - Increase counter by 1
- Divide T by Counter
- Normalize T
Bookmarks