Message 1 of 4
Maxsdk: FlipNormal is not updating faces

Not applicable
01-26-2021
10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I am flipping the face of a mesh in SDK using the following pseudo/code.
The problem is even the indices in the face array are restructured by FlipNormals, I am still not able to see the corrected face in the viewport or when exported. Perhaps some work needs to be done to update the normals array?
Mesh mesh = triOb->GetMesh();
mesh.FlipNormal(faceIndex)
triOb->mesh = mesh;
triOb->mesh.InvalidateTopologyCache();
triOb->mesh.buildRenderNormals();
triOb->NotifyDependents(FOREVER, PART_ALL, REFMSG_CHANGE);
triOb->Update(t);
Interface* ip = GetCOREInterface();
ip->RedrawViews(ip->GetTime());