Skip to content

Commit

Permalink
2d fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed Oct 9, 2020
1 parent e18d6e4 commit d7634d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygalmesh/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _select(obj):
return mesh


def generate_2d(points, constraints, B=math.sqrt(2), cell_size=0.0, num_lloyd_steps=0):
def generate_2d(points, constraints, B=math.sqrt(2), edge_size=0.0, num_lloyd_steps=0):
# some sanity checks
points = numpy.asarray(points)
constraints = numpy.asarray(constraints)
Expand All @@ -99,7 +99,7 @@ def generate_2d(points, constraints, B=math.sqrt(2), cell_size=0.0, num_lloyd_st
if numpy.any(length2 < 1.0e-15):
raise RuntimeError("Constraint of (near)-zero length.")

points, cells = _generate_2d(points, constraints, B, cell_size, num_lloyd_steps)
points, cells = _generate_2d(points, constraints, B, edge_size, num_lloyd_steps)
return meshio.Mesh(numpy.array(points), {"triangle": numpy.array(cells)})


Expand Down

0 comments on commit d7634d0

Please sign in to comment.