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)