----------------------------------------------------------------------------------------------
| 399 | |
| 400 | //---------------------------------------------------------------------------------------------- |
| 401 | void vtkHyperTreeGridFeatureEdges::InsertNewEdge( |
| 402 | double* edgePt1, double* edgePt2, vtkPoints* outPoints, vtkCellArray* outCells, vtkIdType cellId) |
| 403 | { |
| 404 | vtkIdType ptId1 = 0; |
| 405 | vtkIdType ptId2 = 0; |
| 406 | |
| 407 | if (this->Locator) |
| 408 | { |
| 409 | this->Locator->InsertUniquePoint(edgePt1, ptId1); |
| 410 | this->Locator->InsertUniquePoint(edgePt2, ptId2); |
| 411 | } |
| 412 | else |
| 413 | { |
| 414 | ptId1 = outPoints->InsertNextPoint(edgePt1); |
| 415 | ptId2 = outPoints->InsertNextPoint(edgePt2); |
| 416 | } |
| 417 | |
| 418 | std::vector<vtkIdType> outPointIds = { ptId1, ptId2 }; |
| 419 | |
| 420 | vtkIdType outputCellIndex = outCells->InsertNextCell(outPointIds.size(), outPointIds.data()); |
| 421 | |
| 422 | this->OutData->CopyData(this->InData, cellId, outputCellIndex); |
| 423 | } |
| 424 | |
| 425 | VTK_ABI_NAMESPACE_END |
no test coverage detected