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

Method ContainsPoint

Common/DataModel/vtkKdNode.cxx:644–667  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

642
643//------------------------------------------------------------------------------
644vtkTypeBool vtkKdNode::ContainsPoint(double x, double y, double z, int useDataBounds = 0)
645{
646 double *min, *max;
647
648 if (useDataBounds)
649 {
650 min = this->MinVal;
651 max = this->MaxVal;
652 }
653 else
654 {
655 min = this->Min;
656 max = this->Max;
657 }
658
659 if ((min[0] > x) || (max[0] < x) || (min[1] > y) || (max[1] < y) || (min[2] > z) || (max[2] < z))
660 {
661 return 0;
662 }
663 else
664 {
665 return 1;
666 }
667}
668
669//------------------------------------------------------------------------------
670int vtkKdNode::IntersectsRegion(vtkPlanesIntersection* pi, int useDataBounds)

Callers 15

IntersectsSphere2Method · 0.95
IntersectsCellMethod · 0.95
RequestDataMethod · 0.45
GetChartIndexMethod · 0.45
IntersectWithLineMethod · 0.45
FindClosestNPointsMethod · 0.45
findRegionMethod · 0.45
FindClosestPointMethod · 0.45
FindClosestNPointsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected