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

Method DoesIntersect

Common/DataModel/vtkAMRBox.cxx:406–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406bool vtkAMRBox::DoesIntersect(const vtkAMRBox& other) const
407{
408 assert("pre: AMR Box instance is invalid" && !this->IsInvalid());
409 if (this->Empty())
410 {
411 return false;
412 }
413 if (other.Empty())
414 {
415 return false;
416 }
417 if (!this->DoesBoxIntersectAlongDimension(other, 0) ||
418 !this->DoesBoxIntersectAlongDimension(other, 1) ||
419 !this->DoesBoxIntersectAlongDimension(other, 2))
420 {
421 return false;
422 }
423 return true;
424}
425
426int vtkAMRBox::ComputeStructuredCoordinates(const vtkAMRBox& box, const double dataOrigin[3],
427 const double h[3], const double x[3], int ijk[3], double pcoords[3])

Callers 1

Calls 3

assertFunction · 0.50
EmptyMethod · 0.45

Tested by

no test coverage detected