(sq_threshold, v1, v2)
| 64 | height_map[neg_i] = (1.0 - weight) * old_neg + weight * old_pos |
| 65 | |
| 66 | def interpolate(sq_threshold, v1, v2): |
| 67 | if v1 == v2: |
| 68 | return v1 |
| 69 | return (sq_threshold - v1) / (v2 - v1) |
| 70 | |
| 71 | stats = {'maxx': 0, 'maxy': 0, 'minx': 0, 'miny': 0} |
| 72 | def append_p(lines, p1, p2): |