Skip to content

Problem with VTKPolyhedron functionality #161

Description

@Dunckleosteus

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 :

Image

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions