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

Method GetFace

Rendering/Volume/vtkUnstructuredGridVolumeZSweepMapper.cxx:2231–2253  ·  view source on GitHub ↗

Return pointer to face faceIds if the use set of vertex faceIds[0] have this face, otherwise return null.

Source from the content-addressed store, hash-verified

2229 // Return pointer to face faceIds if the use set of vertex faceIds[0] have
2230 // this face, otherwise return null.
2231 vtkFace* GetFace(vtkIdType faceIds[3])
2232 {
2233 std::list<vtkFace*>* useSet = this->Vector[faceIds[0]];
2234 vtkFace* result = nullptr;
2235
2236 if (useSet != nullptr)
2237 {
2238 this->It = (*useSet).begin();
2239 this->ItEnd = (*useSet).end();
2240 int found = 0;
2241 while (!found && this->It != this->ItEnd)
2242 {
2243 result = *this->It;
2244 found = result->IsEqual(faceIds);
2245 ++this->It;
2246 }
2247 if (!found)
2248 {
2249 result = nullptr;
2250 }
2251 }
2252 return result;
2253 }
2254
2255 int CellScalars;
2256 int NumberOfComponents;

Callers 2

AddFaceMethod · 0.95
BuildUseSetsMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
IsEqualMethod · 0.45

Tested by

no test coverage detected