MCPcopy Create free account
hub / github.com/Kitware/VTK / InternalCheckAndReorderFaces

Method InternalCheckAndReorderFaces

Common/DataModel/vtkExplicitStructuredGrid.cxx:988–1010  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

986
987//------------------------------------------------------------------------------
988void vtkExplicitStructuredGrid::InternalCheckAndReorderFaces(bool swapFlag)
989{
990 // Find connected faces
991 int foundFaces[3] = { -1, -1, -1 };
992 this->FindConnectedFaces(foundFaces);
993
994 // Compute correcting transformation
995 int* ptsMap;
996 int transformFlag[3] = { 0, 0, 0 };
997 if (swapFlag)
998 {
999 vtkExplicitStructuredGrid::ComputeSwapFlag(foundFaces, transformFlag);
1000 ptsMap = SWAP_HEXAHEDRON_POINT_MAP;
1001 }
1002 else
1003 {
1004 vtkExplicitStructuredGrid::ComputeMirrorFlag(foundFaces, transformFlag);
1005 ptsMap = MIRROR_HEXAHEDRON_POINT_MAP;
1006 }
1007
1008 // Reorder cell points accordingly
1009 this->ReorderCellsPoints(ptsMap, transformFlag);
1010}
1011
1012//------------------------------------------------------------------------------
1013int vtkExplicitStructuredGrid::FindConnectedFaces(int foundFaces[3])

Callers 1

CheckAndReorderFacesMethod · 0.95

Calls 2

FindConnectedFacesMethod · 0.95
ReorderCellsPointsMethod · 0.95

Tested by

no test coverage detected