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

Method ProcessLeaf2D

Filters/Hybrid/vtkAdaptiveDataSetSurfaceFilter.cxx:429–445  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

427
428//------------------------------------------------------------------------------
429void vtkAdaptiveDataSetSurfaceFilter::ProcessLeaf2D(
430 vtkHyperTreeGridNonOrientedGeometryCursor* cursor)
431{
432 // Cell at cursor center is a leaf, retrieve its global index
433 vtkIdType id = cursor->GetGlobalNodeIndex();
434 if (id < 0)
435 {
436 return;
437 }
438
439 // In 2D all unmasked faces are generated
440 if (!this->Mask || !this->Mask->GetValue(id))
441 {
442 // Insert face into 2D geometry depending on orientation
443 this->AddFace(id, cursor->GetOrigin(), cursor->GetSize(), 0, this->Orientation);
444 }
445}
446
447//------------------------------------------------------------------------------
448template <int N>

Callers 1

Calls 5

AddFaceMethod · 0.95
GetGlobalNodeIndexMethod · 0.45
GetValueMethod · 0.45
GetOriginMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected