------------------------------------------------------------------------------
| 986 | |
| 987 | //------------------------------------------------------------------------------ |
| 988 | void 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 | //------------------------------------------------------------------------------ |
| 1013 | int vtkExplicitStructuredGrid::FindConnectedFaces(int foundFaces[3]) |
no test coverage detected