------------------------------------------------------------------------------ Description: Init the error metric with the dataset. Should be called in each filter before any tessellation of any cell.
| 136 | // Init the error metric with the dataset. Should be called in each filter |
| 137 | // before any tessellation of any cell. |
| 138 | void vtkGenericCellTessellator::InitErrorMetrics(vtkGenericDataSet* ds) |
| 139 | { |
| 140 | this->Initialize(ds); |
| 141 | this->ErrorMetrics->InitTraversal(); |
| 142 | vtkGenericSubdivisionErrorMetric* e = |
| 143 | static_cast<vtkGenericSubdivisionErrorMetric*>(this->ErrorMetrics->GetNextItemAsObject()); |
| 144 | |
| 145 | while (e != nullptr) |
| 146 | { |
| 147 | e->SetDataSet(ds); |
| 148 | e = static_cast<vtkGenericSubdivisionErrorMetric*>(this->ErrorMetrics->GetNextItemAsObject()); |
| 149 | } |
| 150 | |
| 151 | if (this->Measurement) |
| 152 | { |
| 153 | this->ResetMaxErrors(); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | //------------------------------------------------------------------------------ |
| 158 | // Description: |
no test coverage detected