MCPcopy Create free account
hub / github.com/assimp/assimp / flipWindingOrder

Function flipWindingOrder

code/AssetLib/AC/ACLoader.cpp:136–138  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Reverses vertex indices in a face.

Source from the content-addressed store, hash-verified

134// ------------------------------------------------------------------------------------------------
135// Reverses vertex indices in a face.
136static void flipWindingOrder(aiFace &f) {
137 std::reverse(f.mIndices, f.mIndices + f.mNumIndices);
138}
139
140// ------------------------------------------------------------------------------------------------
141// Duplicates a face and inverts it. Also duplicates all vertices (so the new face gets its own

Callers 1

buildBacksideOfFaceFunction · 0.85

Calls 1

reverseFunction · 0.85

Tested by

no test coverage detected