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

Method InitErrorMetrics

Common/DataModel/vtkGenericCellTessellator.cxx:138–155  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Init the error metric with the dataset. Should be called in each filter before any tessellation of any cell.

Source from the content-addressed store, hash-verified

136// Init the error metric with the dataset. Should be called in each filter
137// before any tessellation of any cell.
138void 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:

Callers 5

RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80

Calls 5

ResetMaxErrorsMethod · 0.95
GetNextItemAsObjectMethod · 0.80
InitializeMethod · 0.45
InitTraversalMethod · 0.45
SetDataSetMethod · 0.45

Tested by

no test coverage detected