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

Method ExtractStructured

Filters/Geometry/vtkGeometryFilter.cxx:1528–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1526 vtkIdType NumberOfFaces;
1527
1528 ExtractStructured(vtkGeometryFilter* self, TGrid* ds, int* wholeExtent, bool* extractFaces,
1529 bool merging, unsigned char* cellGhosts, vtkExcludedFaces<TInputIdType>* exc,
1530 ThreadOutputType<TInputIdType>* t)
1531 : ExtractCellBoundaries<TInputIdType>(self, nullptr, cellGhosts, nullptr, exc, t)
1532 , Input(ds)
1533 , FastMode(self->GetFastMode())
1534 , ExtractFaces(extractFaces)
1535 , Extent(ds->GetExtent())
1536 , WholeExtent(wholeExtent)
1537 {
1538 this->Dims[0] = this->Extent[1] - this->Extent[0] + 1;
1539 this->Dims[1] = this->Extent[3] - this->Extent[2] + 1;
1540 this->Dims[2] = this->Extent[5] - this->Extent[4] + 1;
1541 if (merging)
1542 {
1543 this->CreatePointMap(ds->GetNumberOfPoints());
1544 }
1545 this->ForceSimpleVisibilityCheck = extractFaces != nullptr;
1546 this->AllCellsVisible = !this->Input->GetCellData()->HasAnyGhostBitSet(
1547 self->GetRemoveGhostInterfaces() ? MASKED_CELL_VALUE : MASKED_CELL_VALUE_NOT_VISIBLE);
1548 }
1549
1550 // Initialize thread data
1551 void Initialize() override { this->ExtractCellBoundaries<TInputIdType>::Initialize(); }

Callers

nothing calls this directly

Calls 5

CreatePointMapMethod · 0.80
HasAnyGhostBitSetMethod · 0.80
GetExtentMethod · 0.45
GetNumberOfPointsMethod · 0.45
GetCellDataMethod · 0.45

Tested by

no test coverage detected