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

Function main

scripts/refine_mesh.py:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 return parser.parse_args();
17
18def main():
19 args = parse_args();
20 mesh = pymesh.load_mesh(args.input_mesh);
21 out_mesh, info = pymesh.split_long_edges(mesh, args.max_edge_length);
22
23 if mesh.has_attribute("corner_texture"):
24 pymesh.map_corner_attribute(mesh, out_mesh, "corner_texture");
25
26 pymesh.save_mesh(args.output_mesh, out_mesh, *out_mesh.attribute_names);
27
28if __name__ == "__main__":
29 main();

Callers 1

refine_mesh.pyFile · 0.70

Calls 5

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

Tested by

no test coverage detected