------------------------------------------------------------------------------
| 526 | |
| 527 | //------------------------------------------------------------------------------ |
| 528 | int vtkEdgeTable::InitPointInsertion(vtkPoints* newPts, vtkIdType estSize) |
| 529 | { |
| 530 | // Initialize |
| 531 | if (this->Table) |
| 532 | { |
| 533 | this->Initialize(); |
| 534 | } |
| 535 | if (newPts == nullptr) |
| 536 | { |
| 537 | vtkErrorMacro(<< "Must define points for point insertion"); |
| 538 | return 0; |
| 539 | } |
| 540 | if (this->Points != nullptr) |
| 541 | { |
| 542 | this->Points->Delete(); |
| 543 | } |
| 544 | // Set up the edge insertion |
| 545 | this->InitEdgeInsertion(estSize, 1); |
| 546 | |
| 547 | this->Points = newPts; |
| 548 | this->Points->Register(this); |
| 549 | |
| 550 | return 1; |
| 551 | } |
| 552 | |
| 553 | //------------------------------------------------------------------------------ |
| 554 | int vtkEdgeTable::InsertUniquePoint(vtkIdType p1, vtkIdType p2, double x[3], vtkIdType& ptId) |