From d7634d0799adc478eff5bb4ca52ab5344c5ba9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Schl=C3=B6mer?= Date: Fri, 9 Oct 2020 10:03:14 +0200 Subject: [PATCH] 2d fix --- pygalmesh/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygalmesh/main.py b/pygalmesh/main.py index b097e1d..d93d1ab 100644 --- a/pygalmesh/main.py +++ b/pygalmesh/main.py @@ -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) @@ -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)})