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

Method ResetCheckArrays

Filters/General/vtkLoopBooleanPolyDataFilter.cxx:670–689  ·  view source on GitHub ↗

Reset the find region arrays to test another region

Source from the content-addressed store, hash-verified

668
669// Reset the find region arrays to test another region
670void vtkLoopBooleanPolyDataFilter::Impl::ResetCheckArrays()
671{
672 for (int i = 0; i < 2; i++)
673 {
674 int numPolys = this->Mesh[i]->GetNumberOfCells();
675 for (vtkIdType cellId = 0; cellId < numPolys; cellId++)
676 {
677 if (this->BoundaryCellArray[i]->GetValue(cellId) == 1)
678 {
679 this->Checked[i][cellId] = 1;
680 this->CheckedCarefully[i][cellId] = 0;
681 }
682 else
683 {
684 this->Checked[i][cellId] = 0;
685 this->CheckedCarefully[i][cellId] = 1;
686 }
687 }
688 }
689}
690
691// Set the boundary arrays on the mesh
692void vtkLoopBooleanPolyDataFilter::Impl::SetBoundaryArrays()

Callers 1

RunLoopTestMethod · 0.95

Calls 2

GetNumberOfCellsMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected