------------------------------------------------------------------------------ Description: Send the current cell to error metrics. Should be called at the beginning of the implementation of Tessellate(), Triangulate() or TessellateFace() \pre cell_exists: cell!=0
| 199 | // or TessellateFace() |
| 200 | // \pre cell_exists: cell!=0 |
| 201 | void vtkGenericCellTessellator::SetGenericCell(vtkGenericAdaptorCell* cell) |
| 202 | { |
| 203 | assert("pre: cell_exists" && cell != nullptr); |
| 204 | |
| 205 | this->ErrorMetrics->InitTraversal(); |
| 206 | vtkGenericSubdivisionErrorMetric* e = |
| 207 | static_cast<vtkGenericSubdivisionErrorMetric*>(this->ErrorMetrics->GetNextItemAsObject()); |
| 208 | |
| 209 | while (e != nullptr) |
| 210 | { |
| 211 | e->SetGenericCell(cell); |
| 212 | e = static_cast<vtkGenericSubdivisionErrorMetric*>(this->ErrorMetrics->GetNextItemAsObject()); |
| 213 | } |
| 214 | } |
| 215 | VTK_ABI_NAMESPACE_END |
no test coverage detected