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

Function shouldRefine

Common/DataModel/Testing/Python/TestHyperTreeGrid3DMandel.py:73–88  ·  view source on GitHub ↗
(level, bounds)

Source from the content-addressed store, hash-verified

71
72
73def shouldRefine(level, bounds):
74 if level >= TARGET_LEVEL:
75 return False
76 origin = mandelbrotTest(bounds[0], bounds[2])
77 originX = mandelbrotTest(bounds[1], bounds[2])
78 originY = mandelbrotTest(bounds[0], bounds[3])
79 originXY = mandelbrotTest(bounds[1], bounds[3])
80 canRefine = bounds[4] < 0.01
81
82 if canRefine:
83 if origin and originX and originY and originXY:
84 return False
85 if not origin and not originX and not originY and not originXY:
86 return False
87 return True
88 return False
89
90
91def handleNode(cursor, sideArray, levelArray):

Callers 1

handleNodeFunction · 0.70

Calls 1

mandelbrotTestFunction · 0.70

Tested by

no test coverage detected