Skip to content

Commit 3c970b3

Browse files
committed
add dim to Mesh2D & Mesh3D
1 parent 6939b9c commit 3c970b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/neatmesh/_mesh.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, reader: MeshReader2D) -> None:
2020
self._analyzer.analyze_non_ortho()
2121

2222
self.meshio_cell_blocks = self._reader.cell_blocks
23+
self.dim = 2
2324
self.points = self._analyzer.points
2425

2526
self.edges = self._analyzer.edges
@@ -65,6 +66,7 @@ def __init__(self, reader: MeshReader3D) -> None:
6566
self._analyzer.analyze_non_ortho()
6667

6768
self.meshio_cell_blocks = self._reader.cell_blocks
69+
self.dim = 3
6870
self.points = self._analyzer.points
6971

7072
# faces data

0 commit comments

Comments
 (0)