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

Method MarkCellProperty

Filters/Geometry/vtkStructuredGridConnectivity.cxx:301–317  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

299
300//------------------------------------------------------------------------------
301void vtkStructuredGridConnectivity::MarkCellProperty(
302 unsigned char& pfield, unsigned char* nodeGhostFields, int numNodes)
303{
304 // Sanity check
305 assert("pre: node ghostfields should not be nullptr" && (nodeGhostFields != nullptr));
306
307 pfield = 0;
308
309 for (int i = 0; i < numNodes; ++i)
310 {
311 if (nodeGhostFields[i] & vtkDataSetAttributes::DUPLICATEPOINT)
312 {
313 pfield |= vtkDataSetAttributes::DUPLICATECELL;
314 return;
315 }
316 } // END for all nodes
317}
318
319//------------------------------------------------------------------------------
320void vtkStructuredGridConnectivity::MarkNodeProperty(

Callers 1

FillCellsGhostArrayMethod · 0.95

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected