Skip to content

Commit

Permalink
chore: implemented mesh.read_mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
leuraph committed Dec 26, 2023
1 parent 4922889 commit 23e3632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def __init__(self, coordinates: np.ndarray, elements: np.ndarray) -> None:


def read_mesh(path_to_coordinates: Path, path_to_elements: Path) -> Mesh:
coordinates = np.array([[1., 1.], [2., 1.], [2., 2.], [1., 2.]])
elements = np.array([[0, 1, 2], [0, 2, 3]], dtype=int)
coordinates = np.loadtxt(path_to_coordinates)
elements = np.loadtxt(path_to_elements, dtype=int)
return Mesh(coordinates=coordinates, elements=elements)

0 comments on commit 23e3632

Please sign in to comment.