()
| 61 | return parser.parse_args(); |
| 62 | |
| 63 | def main(): |
| 64 | args = parse_args(); |
| 65 | mesh = pymesh.load_mesh(args.input_mesh); |
| 66 | if args.initial_block is not None: |
| 67 | block = pymesh.load_mesh(args.initial_block); |
| 68 | else: |
| 69 | bbox_min, bbox_max = mesh.bbox; |
| 70 | block = pymesh.generate_box_mesh(bbox_min, bbox_max, 2, keep_symmetry=True); |
| 71 | block = pymesh.form_mesh(block.vertices, block.faces); |
| 72 | block, __ = pymesh.remove_isolated_vertices(block); |
| 73 | |
| 74 | carved = carve_mesh(mesh, block, args.N, |
| 75 | args.batch_size, |
| 76 | args.output_mesh, |
| 77 | args.initial_N, |
| 78 | args.save_intermediate, |
| 79 | args.debug); |
| 80 | |
| 81 | pymesh.save_mesh(args.output_mesh, carved); |
| 82 | |
| 83 | if __name__ == "__main__": |
| 84 | main(); |
no test coverage detected