------------------------------------------------------------------------------
| 1827 | |
| 1828 | //------------------------------------------------------------------------------ |
| 1829 | void vtkReebGraph::Implementation::FlushLabels() |
| 1830 | { |
| 1831 | for (int A = 1; A < this->MainArcTable.Size; A++) |
| 1832 | { |
| 1833 | if (!(this->GetArc(A)->LabelId1 == -2)) |
| 1834 | this->GetArc(A)->LabelId0 = this->GetArc(A)->LabelId1 = 0; |
| 1835 | } |
| 1836 | |
| 1837 | if (this->MainLabelTable.Buffer) |
| 1838 | { |
| 1839 | free(this->MainLabelTable.Buffer); |
| 1840 | } |
| 1841 | |
| 1842 | this->MainLabelTable.Buffer = (vtkReebLabel*)malloc(sizeof(vtkReebLabel) * 2); |
| 1843 | this->MainLabelTable.Size = 2; |
| 1844 | this->MainLabelTable.Number = 1; |
| 1845 | this->MainLabelTable.FreeZone = 1; |
| 1846 | this->GetLabel(1)->HNext = -2; |
| 1847 | this->GetLabel(1)->ArcId = 0; |
| 1848 | } |
| 1849 | |
| 1850 | //------------------------------------------------------------------------------ |
| 1851 | void vtkReebGraph::DeepCopy(vtkDataObject* src) |
no test coverage detected