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

Function main

scripts/slice_mesh.py:21–29  ·  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);
24 slices = pymesh.slice_mesh(mesh,
25 np.array(args.axis), args.N);
26
27 slices = pymesh.merge_meshes(slices);
28 pymesh.save_mesh(args.output_slices, slices,
29 *slices.get_attribute_names());
30
31if __name__ == "__main__":
32 main();

Callers 1

slice_mesh.pyFile · 0.70

Calls 4

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

Tested by

no test coverage detected