MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / parse_args

Function parse_args

scripts/refine_triangulation.py:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9from numpy.linalg import norm
10
11def parse_args():
12 parser = argparse.ArgumentParser(__doc__);
13 parser.add_argument("--engine", help="Triangulation engine",
14 choices=("triangle_refiner", "mmg_delaunay"), default="auto");
15 parser.add_argument("input_mesh");
16 parser.add_argument("output_mesh");
17 return parser.parse_args();
18
19def compute_metric(mesh):
20 if mesh.has_attribute("cell"):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected