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

Function main

scripts/curvature.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 return parser.parse_args();
15
16def main():
17 args = parse_args();
18
19 mesh = pymesh.load_mesh(args.input_mesh);
20 mesh.add_attribute("vertex_gaussian_curvature");
21 mesh.add_attribute("vertex_mean_curvature");
22 pymesh.save_mesh(args.output_mesh, mesh, *mesh.get_attribute_names());
23
24if __name__ == "__main__":
25 main();

Callers 1

curvature.pyFile · 0.70

Calls 5

parse_argsFunction · 0.70
load_meshMethod · 0.45
add_attributeMethod · 0.45
save_meshMethod · 0.45
get_attribute_namesMethod · 0.45

Tested by

no test coverage detected