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

Method shouldRefine

IO/XML/Testing/Python/TestXMLHyperTreeGrid.py:67–80  ·  view source on GitHub ↗
(self, geoCursor)

Source from the content-addressed store, hash-verified

65 bounds[4]+(bounds[5]-bounds[4])/2)
66
67 def shouldRefine(self, geoCursor):
68 if geoCursor.GetLevel() >= TARGET_LEVEL:
69 return False
70 bounds = range(6)
71 geoCursor.GetBounds( bounds )
72 v0 = self.test(bounds[0],bounds[2],bounds[4])
73 v1 = self.test(bounds[1],bounds[2],bounds[4])
74 if v0 == v1:
75 v2 = self.test(bounds[0],bounds[3],bounds[4])
76 if v0 == v2:
77 v3 = self.test(bounds[1],bounds[3],bounds[4])
78 if v0 == v3:
79 return False
80 return True
81
82 def handleNode(self, geoCursor, levelArray, scalarArray):
83 # Add value in fields

Callers 1

handleNodeMethod · 0.95

Calls 4

testMethod · 0.95
rangeClass · 0.50
GetLevelMethod · 0.45
GetBoundsMethod · 0.45

Tested by

no test coverage detected