MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / correctPatchOrientation

Function correctPatchOrientation

radiantcore/patch/algorithm/General.cpp:238–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238void correctPatchOrientation(const IPatch& originalPatch, IPatch& mergedPatch)
239{
240 if (meshesAreFacingOppositeDirections(originalPatch.getTesselatedPatchMesh(), mergedPatch.getTesselatedPatchMesh()))
241 {
242 rMessage() << "Reversing patch matrix" << std::endl;
243 mergedPatch.invertMatrix();
244 }
245}
246
247}
248

Callers 1

createdMergedPatchFunction · 0.85

Calls 4

rMessageFunction · 0.85
invertMatrixMethod · 0.80

Tested by

no test coverage detected