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

Function main

scripts/refine_triangulation.py:38–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37
38def main():
39 args = parse_args();
40 mesh = pymesh.load_mesh(args.input_mesh, drop_zero_dim=True);
41 metric = compute_metric(mesh);
42 mesh = pymesh.refine_triangulation(mesh, metric, engine=args.engine);
43 pymesh.save_mesh(args.output_mesh, mesh);
44
45if __name__ == "__main__":
46 main();

Callers 1

Calls 4

compute_metricFunction · 0.85
parse_argsFunction · 0.70
load_meshMethod · 0.45
save_meshMethod · 0.45

Tested by

no test coverage detected