kylebarron/pydelatin

docs about using meshio

kylebarron opened this issue · 0 comments

looks as easy as

import meshio

tin = Delatin(terrain, max_error=30)
vertices, triangles = tin.vertices, tin.triangles

cells = [("triangle", triangles)]
mesh = meshio.Mesh(vertices, cells)
mesh.write('foo.vtk')