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

Function main

scripts/inflate.py:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 return parser.parse_args();
22
23def main():
24 args = parse_args();
25
26 wire_network = pymesh.wires.WireNetwork.create_from_file(args.wire_file);
27 inflator = pymesh.wires.Inflator(wire_network);
28 inflator.set_refinement(
29 order = args.refinement_order,
30 method = args.refinement_method);
31 inflator.inflate(args.thickness, allow_self_intersection=True);
32
33 mesh = inflator.mesh;
34 pymesh.save_mesh(args.mesh_file, mesh, *mesh.get_attribute_names());
35
36if __name__ == "__main__":
37 main();

Callers 1

inflate.pyFile · 0.70

Calls 6

set_refinementMethod · 0.95
inflateMethod · 0.95
create_from_fileMethod · 0.80
parse_argsFunction · 0.70
save_meshMethod · 0.45
get_attribute_namesMethod · 0.45

Tested by

no test coverage detected