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

Method LayoutEdgePoints

Infovis/BoostGraphAlgorithms/vtkBoostDividedEdgeBundling.cxx:519–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519void vtkBundlingMetadata::LayoutEdgePoints()
520{
521 this->InitializeEdgeMesh();
522 this->SimulationStep = 40.0f;
523 this->CycleIterations = 30;
524 for (int i = 0; i < 5; ++i)
525 {
526 vtkDebugWithObjectMacro(this->Outer, "vtkBoostDividedEdgeBundling cycle " << i);
527 this->CycleIterations = this->CycleIterations * 2 / 3;
528 this->SimulationStep = 0.85f * this->SimulationStep;
529 this->DoubleEdgeMeshResolution();
530 for (int j = 0; j < this->CycleIterations; ++j)
531 {
532 vtkDebugWithObjectMacro(this->Outer, "vtkBoostDividedEdgeBundling iteration " << j);
533 this->SimulateEdgeStep();
534 }
535 }
536 this->SmoothEdges();
537}
538
539int vtkBoostDividedEdgeBundling::RequestData(vtkInformation* vtkNotUsed(request),
540 vtkInformationVector** inputVector, vtkInformationVector* outputVector)

Callers 1

RequestDataMethod · 0.45

Calls 4

InitializeEdgeMeshMethod · 0.95
SimulateEdgeStepMethod · 0.95
SmoothEdgesMethod · 0.95

Tested by

no test coverage detected