------------------------------------------------------------------------------
| 372 | |
| 373 | //------------------------------------------------------------------------------ |
| 374 | void vtkPolyLine::Contour(double value, vtkDataArray* cellScalars, |
| 375 | vtkIncrementalPointLocator* locator, vtkCellArray* verts, vtkCellArray* lines, |
| 376 | vtkCellArray* polys, vtkPointData* inPd, vtkPointData* outPd, vtkCellData* inCd, vtkIdType cellId, |
| 377 | vtkCellData* outCd) |
| 378 | { |
| 379 | const vtkIdType numLines = this->Points->GetNumberOfPoints() - 1; |
| 380 | vtkNew<vtkDoubleArray> lineScalars; |
| 381 | lineScalars->SetNumberOfComponents(cellScalars->GetNumberOfComponents()); |
| 382 | lineScalars->SetNumberOfTuples(2); |
| 383 | |
| 384 | for (vtkIdType i = 0; i < numLines; i++) |
| 385 | { |
| 386 | this->Line->Points->SetPoint(0, this->Points->GetPoint(i)); |
| 387 | this->Line->Points->SetPoint(1, this->Points->GetPoint(i + 1)); |
| 388 | |
| 389 | if (outPd) |
| 390 | { |
| 391 | this->Line->PointIds->SetId(0, this->PointIds->GetId(i)); |
| 392 | this->Line->PointIds->SetId(1, this->PointIds->GetId(i + 1)); |
| 393 | } |
| 394 | |
| 395 | lineScalars->SetTuple(0, cellScalars->GetTuple(i)); |
| 396 | lineScalars->SetTuple(1, cellScalars->GetTuple(i + 1)); |
| 397 | |
| 398 | this->Line->Contour( |
| 399 | value, lineScalars, locator, verts, lines, polys, inPd, outPd, inCd, cellId, outCd); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | //------------------------------------------------------------------------------ |
| 404 | // Intersect with sub-lines |
nothing calls this directly
no test coverage detected