depth = None if True: print('With Depth Limiter Filter (HTG)') depth = vtk.vtkHyperTreeGridDepthLimiter() depth.SetInputData(htg) depth.SetDepth(1) isFilter = True else: print('Without Depth Limiter Filter (HTG)') depth = htg # Threshold Filter threshold = None if True: print('With Threshold Filter (HTG)') threshold = vtk.vtkHyperTreeGridThreshold() if isFilter: threshold.SetInputConnection(depth.GetOutputPort()) else: threshold.SetInputData(depth) #[9,99] : x # x x #threshold.ThresholdBetween(9,99) #[19,999] : xx xx * = xx\/ # xx xx xx/\ # xx \/\/ # x* /\/\ threshold.ThresholdBetween(9, 9999) isFilter = True else: print('No Threshold Filter (HTG)')
depth = None if True: print('With Depth Limiter Filter (HTG)') depth = vtk.vtkHyperTreeGridDepthLimiter() depth.SetInputData(htg) depth.SetDepth(2) isFilter = True else: print('Without Depth Limiter Filter (HTG)') depth = htg # Threshold Filter threshold = None if True: print('With Threshold Filter (HTG)') threshold = vtk.vtkHyperTreeGridThreshold() if isFilter: threshold.SetInputConnection(depth.GetOutputPort()) else: threshold.SetInputData(depth) threshold.ThresholdBetween(9,9999) isFilter = True else: print('No Threshold Filter (HTG)') threshold = depth # Axis reflection reflection = None if True: print('With AxisReflection Filter (HTG)') reflection = vtk.vtkHyperTreeGridAxisReflection()