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

Method Intersection

Filters/Parallel/vtkCleanArrays.cxx:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 void MarkValid() { this->Valid = 1; }
141
142 void Intersection(const vtkArraySet& other)
143 {
144 if (this->Valid && other.Valid)
145 {
146 vtkCleanArrays::vtkArraySet setC;
147 std::set_intersection(
148 this->begin(), this->end(), other.begin(), other.end(), std::inserter(setC, setC.begin()));
149 setC.MarkValid();
150 this->swap(setC);
151 }
152 else if (other.Valid)
153 {
154 *this = other;
155 }
156 }
157 void Union(const vtkArraySet& other)
158 {
159 if (this->Valid && other.Valid)

Callers 2

IntersectStreamsFunction · 0.45
RequestDataMethod · 0.45

Calls 4

MarkValidMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected