JuliaVTK / WriteVTK.jl

Julia package for writing VTK XML files
Other
155 stars 33 forks source link

Error in Documentation #73

Closed AhmedSalih3d closed 4 years ago

AhmedSalih3d commented 4 years ago

Create lists of lines and polygons connecting different points in space

points = rand(3, 100) # (x, y, z) locations lines = [MeshCell(PolyData.Lines(), (i, i + 1, i + 4)) for i in (3, 5, 42)] polys = [MeshCell(PolyData.Polys(), i:(i + 6)) for i = 1:3:20] vtk = vtk_grid(points, lines, polys)

Last line should have a parameter more "vtk_grid("name_of_file", ...)

jipolanco commented 4 years ago

You're totally right, thanks!