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

Method test

IO/XML/Testing/Python/TestXMLHyperTreeGrid.py:53–57  ·  view source on GitHub ↗
(self, x, y, z)

Source from the content-addressed store, hash-verified

51 _rayon2 = _rayon*_rayon
52
53 def test(self, x, y, z):
54 d2 = (x - self._center[0])**2 + (y - self._center[1])**2
55 if d2 > self._rayon2:
56 return -1
57 return 1
58
59 def value(self, geoCursor):
60 bounds = range(6)

Callers 2

valueMethod · 0.95
shouldRefineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected