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

Method IntersectsBox

Common/DataModel/vtkKdNode.cxx:567–592  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

565
566//------------------------------------------------------------------------------
567int vtkKdNode::IntersectsBox(
568 double x0, double x1, double y0, double y1, double z0, double z1, int useDataBounds = 0)
569{
570 double *min, *max;
571
572 if (useDataBounds)
573 {
574 min = this->MinVal;
575 max = this->MaxVal;
576 }
577 else
578 {
579 min = this->Min;
580 max = this->Max;
581 }
582
583 if ((min[0] > x1) || (max[0] < x0) || (min[1] > y1) || (max[1] < y0) || (min[2] > z1) ||
584 (max[2] < z0))
585 {
586 return 0;
587 }
588 else
589 {
590 return 1;
591 }
592}
593
594//------------------------------------------------------------------------------
595int vtkKdNode::IntersectsSphere2(

Callers 2

IntersectsCellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected