------------------------------------------------------------------------------
| 226 | |
| 227 | //------------------------------------------------------------------------------ |
| 228 | void vtkExtentRCBPartitioner::ExtendGhostLayers(int ext[6]) |
| 229 | { |
| 230 | if (this->NumberOfGhostLayers == 0) |
| 231 | { |
| 232 | return; |
| 233 | } |
| 234 | |
| 235 | switch (this->DataDescription) |
| 236 | { |
| 237 | case vtkStructuredData::VTK_STRUCTURED_X_LINE: |
| 238 | this->GetGhostedExtent(ext, 0, 1); |
| 239 | break; |
| 240 | case vtkStructuredData::VTK_STRUCTURED_Y_LINE: |
| 241 | this->GetGhostedExtent(ext, 2, 3); |
| 242 | break; |
| 243 | case vtkStructuredData::VTK_STRUCTURED_Z_LINE: |
| 244 | this->GetGhostedExtent(ext, 4, 5); |
| 245 | break; |
| 246 | case vtkStructuredData::VTK_STRUCTURED_XY_PLANE: |
| 247 | this->GetGhostedExtent(ext, 0, 1); |
| 248 | this->GetGhostedExtent(ext, 2, 3); |
| 249 | break; |
| 250 | case vtkStructuredData::VTK_STRUCTURED_YZ_PLANE: |
| 251 | this->GetGhostedExtent(ext, 2, 3); |
| 252 | this->GetGhostedExtent(ext, 4, 5); |
| 253 | break; |
| 254 | case vtkStructuredData::VTK_STRUCTURED_XZ_PLANE: |
| 255 | this->GetGhostedExtent(ext, 0, 1); |
| 256 | this->GetGhostedExtent(ext, 4, 5); |
| 257 | break; |
| 258 | case vtkStructuredData::VTK_STRUCTURED_XYZ_GRID: |
| 259 | this->GetGhostedExtent(ext, 0, 1); |
| 260 | this->GetGhostedExtent(ext, 2, 3); |
| 261 | this->GetGhostedExtent(ext, 4, 5); |
| 262 | break; |
| 263 | default: |
| 264 | assert("pre: unsupported data-description, code should not reach here!" && false); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | //------------------------------------------------------------------------------ |
| 269 | int vtkExtentRCBPartitioner::GetNumberOfNodes(int ext[6]) |
no test coverage detected