Skip to content

Commit d7634d0

Browse files
committed
2d fix
1 parent e18d6e4 commit d7634d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pygalmesh/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _select(obj):
8787
return mesh
8888

8989

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

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

105105

0 commit comments

Comments
 (0)