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

Function InsertCell

Filters/Modeling/Testing/Python/TestBandedContourFilter2.py:48–59  ·  view source on GitHub ↗

Insert the cell counter-clockwise (orientation == True) or clockwise (orientation == False)

(cellArray,points,orientation)

Source from the content-addressed store, hash-verified

46"""
47
48def InsertCell(cellArray,points,orientation):
49 """
50 Insert the cell counter-clockwise (orientation == True)
51 or clockwise (orientation == False)
52 """
53 cellArray.InsertNextCell(len(points))
54 if orientation:
55 for p in points:
56 cellArray.InsertCellPoint(p)
57 else:
58 for p in reversed(points):
59 cellArray.InsertCellPoint(p)
60
61
62def generatePolyData(orientation,fillWith,factor):

Callers 1

generatePolyDataFunction · 0.70

Calls 2

InsertCellPointMethod · 0.80
InsertNextCellMethod · 0.45

Tested by

no test coverage detected