Skip to content

Commit

Permalink
FIX: add missing mesh.createNodes
Browse files Browse the repository at this point in the history
  • Loading branch information
carsten-forty2 committed Jan 13, 2025
1 parent 2b6bcae commit 496480c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pygimli/core/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ def __Mesh_str(self):
Mesh.__repr__ =__Mesh_str


def __Mesh_createNodes__(self, posList):
"""Create nodes for all pos in posList"""
try:
return [self.createNode(p) for p in posList]
except:
return [self.createNode(p) for p in np.asarray(posList).T]
Mesh.createNodes = __Mesh_createNodes__


def __addPLCs__(self, other):
if isR3Array(other):
m = Mesh(dim=self.dim(), isGeometry=True)
Expand Down

0 comments on commit 496480c

Please sign in to comment.