( x)
| 24 | return crossRef[ faceKey] |
| 25 | |
| 26 | def ColStr( x): |
| 27 | if x > 255: |
| 28 | x = 0 |
| 29 | if x < 0: |
| 30 | x = 255 |
| 31 | s = "%x" % x # converts x into a hexidecimal string |
| 32 | if len( s) < 2: |
| 33 | s = '0' + s |
| 34 | return s |
| 35 | |
| 36 | def AddIfUnique( NewEdges, edge): |
| 37 | a = edge[ 0] |