Skip to content

Commit

Permalink
remove leftover prunes
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Dec 7, 2021
1 parent 06f7dc8 commit 9702475
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/meshio/_cli/_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)

Expand Down

0 comments on commit 9702475

Please sign in to comment.