I'm not sure if it's really a problem with the library but when I try to create an unstructured grid using the VTKPolyhedron functionality, only the last polyhedron appears in output. Here is the result in paraview :
Here is the code I wrote :
# points lists defined above
# Construct VTK_QUAD cells with proper point indices
cells = [
VTKPolyhedron(
[p1, p2, p3, p4, p5, p6, p7, p8],
(p1, p2, p3, p4),
(p5, p6, p7, p8),
(p1, p2, p6, p5),
(p2, p3, p7, p6),
(p3, p4, p8, p7),
) for (p1, p2, p3, p4, p5, p6, p7, p8) in zip(points1, points2, points3, points4, points5, points6, points7, points8)
]
# Write to VTK
vtk_grid("test", point_matrix, cells, ascii=true) do vtk
# You can add cell or point data here, if needed
end
How come only 1 geometry is visible in output, given that I create a list of Polyhedrons ?
I'm not sure if it's really a problem with the library but when I try to create an unstructured grid using the
VTKPolyhedronfunctionality, only the last polyhedron appears in output. Here is the result in paraview :Here is the code I wrote :
How come only 1 geometry is visible in output, given that I create a list of Polyhedrons ?