Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_circle(h0=0.7, show=True):
geo = dmsh.geometry.Circle([0.0, 0.0], 1.0)
X, cells = dmsh.generate(geo, h0, show=show)
# X = numpy.column_stack([X[0], X[1], numpy.zeros(X.shape[1])])
# import meshio
# meshio.write_points_cells("out.vtk", X, {"triangle": cells})
X = X.T
assert numpy.array_equal(
cells,
[
[3, 4, 6],
[3, 5, 0],
[5, 3, 6],
[7, 4, 2],
[4, 7, 6],