MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetFaceTreeBinary

Function GetFaceTreeBinary

Examples/Plugins/VisItReader/avtFluentFileFormat.C:2777–2802  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2775
2776//----------------------------------------------------------------------------
2777void avtFluentFileFormat::GetFaceTreeBinary()
2778{
2779 int start = CaseBuffer.find('(', 1);
2780 int end = CaseBuffer.find(')',1);
2781 string info = CaseBuffer.substr(start+1,end-start-1 );
2782 auto result = vtk::scan<int, int, int, int>(info, "{:x} {:x} {:x} {:x}");
2783 auto& [faceId0, faceId1, parentZoneId, childZoneId] = result->values();
2784
2785 int dstart = CaseBuffer.find('(', 7);
2786 int dend = CaseBuffer.find(')', dstart+1);
2787 int ptr = dstart + 1;
2788
2789 int numberOfKids, kid;
2790 for (int i = faceId0; i <=faceId1; i++)
2791 {
2792 Faces[i-1].parent = 1;
2793 numberOfKids = GetCaseBufferInt(ptr);
2794 ptr = ptr + 4;
2795 for (int j = 0; j < numberOfKids; j++)
2796 {
2797 kid = GetCaseBufferInt(ptr);
2798 ptr = ptr + 4;
2799 Faces[kid-1].child = 1;
2800 }
2801 }
2802}
2803
2804//----------------------------------------------------------------------------
2805void avtFluentFileFormat::GetInterfaceFaceParentsAscii()

Callers 1

ParseCaseFileFunction · 0.85

Calls 4

GetCaseBufferIntFunction · 0.85
substrMethod · 0.80
findMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected