------------------------------------------------------------------------------
| 315 | |
| 316 | //------------------------------------------------------------------------------ |
| 317 | void vtkOverlappingAMRMetaData::Initialize(const std::vector<unsigned int>& blocksPerLevel) |
| 318 | { |
| 319 | this->Superclass::Initialize(blocksPerLevel); |
| 320 | |
| 321 | int numBlocks = this->GetNumberOfBlocks(); |
| 322 | this->AllocateBoxes(numBlocks); |
| 323 | this->Spacing->SetNumberOfTuples(3 * blocksPerLevel.size()); |
| 324 | this->Spacing->SetNumberOfComponents(3); |
| 325 | for (std::size_t i = 0; i < blocksPerLevel.size(); i++) |
| 326 | { |
| 327 | double spacing[3] = { -1, -1, -1 }; |
| 328 | this->Spacing->SetTuple(i, spacing); |
| 329 | } |
| 330 | } |
| 331 | |
| 332 | //------------------------------------------------------------------------------ |
| 333 | void vtkOverlappingAMRMetaData::AllocateBlockBounds(unsigned int n) |
nothing calls this directly
no test coverage detected