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

Method SetGenericCell

Common/DataModel/vtkGenericCellTessellator.cxx:201–214  ·  view source on GitHub ↗

------------------------------------------------------------------------------ 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

Source from the content-addressed store, hash-verified

199// or TessellateFace()
200// \pre cell_exists: cell!=0
201void 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}
215VTK_ABI_NAMESPACE_END

Callers 2

TessellateMethod · 0.45
TriangulateTriangleMethod · 0.45

Calls 3

GetNextItemAsObjectMethod · 0.80
assertFunction · 0.50
InitTraversalMethod · 0.45

Tested by

no test coverage detected