()
| 13 | import scipy.sparse.linalg |
| 14 | |
| 15 | def parse_args(): |
| 16 | parser = argparse.ArgumentParser(description=__doc__); |
| 17 | parser.add_argument("--source", type=int, default=0, |
| 18 | help="source vertex index"); |
| 19 | parser.add_argument("input_mesh"); |
| 20 | parser.add_argument("output_mesh"); |
| 21 | return parser.parse_args(); |
| 22 | |
| 23 | def compute_edge_field(mesh): |
| 24 | edges = []; |