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

Method BuildLinks

Common/DataModel/vtkExplicitStructuredGrid.cxx:517–545  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

515
516//------------------------------------------------------------------------------
517void vtkExplicitStructuredGrid::BuildLinks()
518{
519 // Remove the old links if they are already built
520 if (!this->Points)
521 {
522 return;
523 }
524
525 // Different types of links depending on whether the data can be edited after
526 // initial creation.
527 if (!this->Links)
528 {
529 if (!this->Editable)
530 {
531 this->Links = vtkSmartPointer<vtkStaticCellLinks>::New();
532 }
533 else
534 {
535 this->Links = vtkSmartPointer<vtkCellLinks>::New();
536 static_cast<vtkCellLinks*>(this->Links.Get())->Allocate(this->GetNumberOfPoints());
537 }
538 this->Links->SetDataSet(this);
539 }
540 else if (this->Points->GetMTime() > this->Links->GetMTime())
541 {
542 this->Links->SetDataSet(this);
543 }
544 this->Links->BuildLinks();
545}
546
547//------------------------------------------------------------------------------
548void vtkExplicitStructuredGrid::GenerateGhostArray(int zeroExt[6], bool vtkNotUsed(cellOnly))

Callers 3

GetPointCellsMethod · 0.95
GetCellNeighborsMethod · 0.95
CropMethod · 0.95

Calls 6

NewFunction · 0.50
AllocateMethod · 0.45
GetMethod · 0.45
GetNumberOfPointsMethod · 0.45
SetDataSetMethod · 0.45
GetMTimeMethod · 0.45

Tested by

no test coverage detected