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

Method ContainsBox

Common/DataModel/vtkKdNode.cxx:616–641  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

614
615//------------------------------------------------------------------------------
616int vtkKdNode::ContainsBox(
617 double x0, double x1, double y0, double y1, double z0, double z1, int useDataBounds = 0)
618{
619 double *min, *max;
620
621 if (useDataBounds)
622 {
623 min = this->MinVal;
624 max = this->MaxVal;
625 }
626 else
627 {
628 min = this->Min;
629 max = this->Max;
630 }
631
632 if ((min[0] > x0) || (max[0] < x1) || (min[1] > y0) || (max[1] < y1) || (min[2] > z0) ||
633 (max[2] < z1))
634 {
635 return 0;
636 }
637 else
638 {
639 return 1;
640 }
641}
642
643//------------------------------------------------------------------------------
644vtkTypeBool vtkKdNode::ContainsPoint(double x, double y, double z, int useDataBounds = 0)

Callers 1

IntersectsCellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected