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

Function main

scripts/triangulate.py:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 return parser.parse_args();
20
21def main():
22 args = parse_args();
23 mesh = pymesh.load_mesh(args.input_mesh, drop_zero_dim=True);
24 mesh,__ = pymesh.split_long_edges(mesh, 0.01);
25 points = mesh.vertices[mesh.boundary_vertices,:];
26 mesh = pymesh.triangulate_beta(points, args.engine);
27 pymesh.save_mesh(args.output_mesh, mesh);
28 pymesh.timethis.summarize();
29
30if __name__ == "__main__":
31 main();

Callers 1

triangulate.pyFile · 0.70

Calls 5

split_long_edgesMethod · 0.80
summarizeMethod · 0.80
parse_argsFunction · 0.70
load_meshMethod · 0.45
save_meshMethod · 0.45

Tested by

no test coverage detected