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

Method Simplify

Common/DataModel/vtkReebGraph.cxx:1808–1826  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1806
1807//------------------------------------------------------------------------------
1808int vtkReebGraph::Simplify(
1809 double simplificationThreshold, vtkReebGraphSimplificationMetric* simplificationMetric)
1810{
1811 int deletionNumber = 0;
1812
1813 this->Storage->cancellationHistory.clear();
1814 this->Storage->historyOn = true;
1815
1816 this->Storage->ArcNumber = 0;
1817 this->Storage->NodeNumber = 0;
1818
1819 deletionNumber = this->Storage->SimplifyBranches(simplificationThreshold, simplificationMetric) +
1820 this->Storage->SimplifyLoops(simplificationThreshold, simplificationMetric) +
1821 this->Storage->SimplifyBranches(simplificationThreshold, simplificationMetric);
1822
1823 this->Storage->historyOn = false;
1824
1825 return deletionNumber;
1826}
1827
1828//------------------------------------------------------------------------------
1829void vtkReebGraph::Implementation::FlushLabels()

Callers

nothing calls this directly

Calls 3

SimplifyBranchesMethod · 0.80
SimplifyLoopsMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected