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

Method InitPointInsertion

Common/DataModel/vtkEdgeTable.cxx:528–551  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

526
527//------------------------------------------------------------------------------
528int 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//------------------------------------------------------------------------------
554int vtkEdgeTable::InsertUniquePoint(vtkIdType p1, vtkIdType p2, double x[3], vtkIdType& ptId)

Callers 8

TestPolyhedron0Function · 0.45
TestContourFunction · 0.45
TestPolyhedralCellsInUGFunction · 0.45
TestPolyhedron1Function · 0.45

Calls 4

InitializeMethod · 0.95
InitEdgeInsertionMethod · 0.95
DeleteMethod · 0.65
RegisterMethod · 0.45

Tested by 6

TestPolyhedron0Function · 0.36
TestContourFunction · 0.36
TestPolyhedralCellsInUGFunction · 0.36
TestPolyhedron1Function · 0.36