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

Method SetBounds

Common/DataModel/vtkOverlappingAMRMetaData.cxx:646–656  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

644
645//------------------------------------------------------------------------------
646void vtkOverlappingAMRMetaData::SetBounds(unsigned int level, unsigned int id, double* bb)
647{
648 if (this->BlockBounds.empty())
649 {
650 this->AllocateBlockBounds(this->GetNumberOfBlocks());
651 }
652
653 unsigned int index = this->GetAbsoluteBlockIndex(level, id);
654 this->BlockBounds[index] = vtkBoundingBox(bb);
655 this->UpdateBounds(level, id);
656}
657
658//------------------------------------------------------------------------------
659void vtkOverlappingAMRMetaData::GetBounds(unsigned int level, unsigned int id, double* bb)

Callers

nothing calls this directly

Calls 6

AllocateBlockBoundsMethod · 0.95
UpdateBoundsMethod · 0.95
vtkBoundingBoxClass · 0.70
emptyMethod · 0.45
GetNumberOfBlocksMethod · 0.45
GetAbsoluteBlockIndexMethod · 0.45

Tested by

no test coverage detected