Skip to content

Commit 3a66b00

Browse files
authored
Merge pull request #1057 from nschloe/medit-corners
add corner keyword to medit
2 parents 7eb71be + 9a777ff commit 3a66b00

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[![GitHub stars](https://img.shields.io/github/stars/nschloe/meshio.svg?style=flat-square&logo=github&label=Stars&logoColor=white)](https://github.com/nschloe/meshio)
1212
[![PyPi downloads](https://img.shields.io/pypi/dm/meshio.svg?style=flat-square)](https://pypistats.org/packages/meshio)
1313

14-
[![Discord](https://img.shields.io/static/v1?logo=discord&label=chat&message=on%20discord&color=7289da&style=flat-square)](https://discord.gg/hnTJ5MRX2Y)
14+
[![Discord](https://img.shields.io/static/v1?logo=discord&label=chat&message=on%20discord&color=7289da&style=flat-square)](https://discord.gg/Z6DMsJh4Hr)
1515

1616
[![gh-actions](https://img.shields.io/github/workflow/status/nschloe/meshio/ci?style=flat-square)](https://github.com/nschloe/meshio/actions?query=workflow%3Aci)
1717
[![codecov](https://img.shields.io/codecov/c/github/nschloe/meshio.svg?style=flat-square)](https://codecov.io/gh/nschloe/meshio)

meshio/medit/_medit.py

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ def read_ascii_buffer(f):
236236
# adapt for 0-base
237237
cells.append((meshio_type, out[:, :points_per_cell] - 1))
238238
cell_data["medit:ref"].append(out[:, -1])
239+
elif items[0] == "Corners":
240+
# those are just discarded
241+
num_corners = int(f.readline())
242+
np.fromfile(f, count=num_corners, dtype=dtype, sep=" ")
239243
elif items[0] == "Normals":
240244
# those are just discarded
241245
num_normals = int(f.readline())

0 commit comments

Comments
 (0)