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

Method DoesBoxIntersectAlongDimension

Common/DataModel/vtkAMRBox.cxx:392–404  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

390
391//------------------------------------------------------------------------------
392bool vtkAMRBox::DoesBoxIntersectAlongDimension(const vtkAMRBox& other, int q) const
393{
394 if (this->EmptyDimension(q) && other.EmptyDimension(q))
395 {
396 return true;
397 }
398 int minVal = 0;
399 int maxVal = 0;
400 minVal = (this->LoCorner[q] < other.LoCorner[q]) ? other.LoCorner[q] : this->LoCorner[q];
401 maxVal = (this->HiCorner[q] > other.HiCorner[q]) ? other.HiCorner[q] : this->HiCorner[q];
402
403 return minVal < maxVal;
404}
405
406bool vtkAMRBox::DoesIntersect(const vtkAMRBox& other) const
407{

Callers 1

DoesIntersectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected