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

Method MarkCell

Filters/Geometry/vtkMarkBoundaryFilter.cxx:152–163  ·  view source on GitHub ↗

Threaded method. The cell info is being written to by only one thread. The point info may be written to by multiple threads, but the info is always set to the same value (=1).

Source from the content-addressed store, hash-verified

150 // thread. The point info may be written to by multiple threads, but the
151 // info is always set to the same value (=1).
152 void MarkCell(vtkIdType cellId, vtkIdType faceNum, vtkIdType npts, const vtkIdType* pts)
153 {
154 this->CellMarks[cellId] = 1;
155 if (this->FaceMarks != nullptr && faceNum < (int)sizeof(vtkIdType))
156 {
157 this->FaceMarks[cellId] |= (static_cast<vtkIdType>(1) << faceNum);
158 }
159 for (auto i = 0; i < npts; ++i)
160 {
161 this->PtMarks[pts[i]] = 1;
162 }
163 }
164
165 // Specialized method for structured data.
166 void MarkStructuredCell(vtkIdType cellId, vtkIdType faceMark, vtkIdList* ptIds)

Callers 4

operator()Method · 0.80
PolyDataExecuteFunction · 0.80
MarkUGCellFunction · 0.80
operator()Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected