From 97024751e42be36756cfb274f6301ad9e0643273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Tue, 7 Dec 2021 11:17:18 +0100 Subject: [PATCH] remove leftover prunes --- src/meshio/_cli/_convert.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/meshio/_cli/_convert.py b/src/meshio/_cli/_convert.py index 44766735d..ce19f2e22 100644 --- a/src/meshio/_cli/_convert.py +++ b/src/meshio/_cli/_convert.py @@ -34,18 +34,6 @@ def add_args(parser): type=str, help="float format used in output ASCII files (default: .16e)", ) - parser.add_argument( - "--prune", - "-p", - action="store_true", - help="remove lower order cells, remove orphaned nodes", - ) - parser.add_argument( - "--prune-z-0", - "-z", - action="store_true", - help="remove third (z) dimension if all points are 0", - ) parser.add_argument( "--sets-to-int-data", "-s", @@ -64,16 +52,6 @@ def convert(args): # read mesh data mesh = read(args.infile, file_format=args.input_format) - if args.prune: - mesh.prune() - - if ( - args.prune_z_0 - and mesh.points.shape[1] == 3 - and np.all(np.abs(mesh.points[:, 2]) < 1.0e-13) - ): - mesh.points = mesh.points[:, :2] - # Some converters (like VTK) require `points` to be contiguous. mesh.points = np.ascontiguousarray(mesh.points)