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

Method CheckLocation

IO/AMR/vtkAMRBaseParticlesReader.cxx:186–207  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

184
185//------------------------------------------------------------------------------
186bool vtkAMRBaseParticlesReader::CheckLocation(double x, double y, double z)
187{
188 if (!this->FilterLocation)
189 {
190 return true;
191 }
192
193 double coords[3];
194 coords[0] = x;
195 coords[1] = y;
196 coords[2] = z;
197
198 for (int i = 0; i < 3; ++i)
199 {
200 if (this->MinLocation[i] > coords[i] || coords[i] > this->MaxLocation[i])
201 {
202 return false;
203 }
204 } // END for all dimensions
205
206 return true;
207}
208
209//------------------------------------------------------------------------------
210int vtkAMRBaseParticlesReader::RequestData(vtkInformation* vtkNotUsed(request),

Callers 2

GetParticlesMethod · 0.80
GetParticlesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected