Return pointer to face faceIds if the use set of vertex faceIds[0] have this face, otherwise return null.
| 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; |
no test coverage detected