Insert the cell counter-clockwise (orientation == True) or clockwise (orientation == False)
(cellArray,points,orientation)
| 46 | """ |
| 47 | |
| 48 | def 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 | |
| 62 | def generatePolyData(orientation,fillWith,factor): |
no test coverage detected