Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mixed element braid example fails to render due to shape map entries #1490

Open
mlohry opened this issue Mar 21, 2025 · 7 comments
Open

mixed element braid example fails to render due to shape map entries #1490

mlohry opened this issue Mar 21, 2025 · 7 comments
Assignees
Labels
Milestone

Comments

@mlohry
Copy link
Contributor

mlohry commented Mar 21, 2025

Using the example mesh conduit::blueprint::mesh::examples::braid("mixed", 16, 16, 16, mesh);
and attempting to render results in the error:

message: 
Shape Map Entries do not match required VTK-m Shape Ids.
Passed Shape Map:

polyhedral: 42
tet: 10
hex: 12

Supported Shape Map:

tri: 5
quad: 9
tet: 10
hex: 12
point: 1
line: 3
wedge: 13
pyramid: 14

i.e. the polyhedral type looks unsupported, at least when mixed with standard shapes.

Exporting the HDF5 for this and trying to load in visit also hits an error when trying to load/render the mesh:

The compute engine running on lancer has exited abnormally.

Shortly thereafter, the following occured...

The Mesh plot of "mesh_mesh" for the file "all_output_braid.cycle_000100.root" could not be generated by the compute engine on host "localhost".

braid with all tets or other element types works as expected.

@JustinPrivitera
Copy link
Member

I can't speak authoritatively on what the issue might be in Ascent, but in VisIt we added mixed element topology support to the Blueprint reader in our latest release, 3.4.2. Which version of VisIt were you using when you saw the error?

@mlohry
Copy link
Contributor Author

mlohry commented Mar 24, 2025

Thanks @JustinPrivitera , visit 3.4.2 works; I was on 3.4.1 which didn't.

So the braid example containing polyhedra fails in the ascent render with the original error. A different mixed element mesh without polyhedra looks like it works correctly, except that sliced fields show blank images.

@JustinPrivitera
Copy link
Member

I can confirm that we do not yet support polyhedral mixed topologies in Ascent. We may look to add that support in a future release, but not the most imminent release which is coming shortly.

@JustinPrivitera JustinPrivitera self-assigned this Mar 24, 2025
@JustinPrivitera JustinPrivitera added this to the 0.9.5 milestone Mar 24, 2025
@mlohry
Copy link
Contributor Author

mlohry commented Mar 24, 2025

The main mixed element case I'm interested in doesn't have polyhedral elements. This example is comprised of tet, pyramid, and wedge. I can render a field on the full mesh correctly:

Image

And I can show a mesh on a slice pipeline correctly:

Image

but the same setup for the field renders a blank black screen (or the mesh+black if i also add the mesh)

Image

@nicolemarsaglia
Copy link
Contributor

Hmm odd. @mlohry could you share an extract and your actions file?

@mlohry
Copy link
Contributor Author

mlohry commented Mar 24, 2025

out_hdf5.root.zip

-
  action: "add_pipelines"
  pipelines:
    pl1:
      f1:
        type: "slice"
        params:
          point:
            x: 0.0
            y: 468.75
            z: 0.0
          normal:
            x: 0.0
            y: 1.0
            z: 0.0
- 
  action: "add_scenes"
  scenes: 
    s1: 
      plots:
        p1: 
          type: "pseudocolor"
          field: "test_field"
      renders:
        default_view:
          image_width: 1024
          image_height: 1024
          image_prefix: "render_full_mesh"
    s2: 
      plots: 
        p1: 
          type: "mesh"
          pipeline: "pl1"
      renders:
        r1:
          image_width: 1024
          image_height: 1024
          image_prefix: "render_slice_mesh"
          world_annotations: "true"
          annotations: "true"
          camera:
            position: [1325.90, -700.0, 177.95]
            look_at: [1325.90, 468.75, 177.95]
            up: [0.0, 0.0, 1.0]
    s3: 
      plots: 
        p1: 
          type: "pseudocolor"
          pipeline: "pl1"
          field: "test_field"
      renders:
        r1:
          image_width: 1024
          image_height: 1024
          image_prefix: "render_slice_field"
          world_annotations: "true"
          annotations: "true"
          camera:
            position: [1325.90, -700.0, 177.95]
            look_at: [1325.90, 468.75, 177.95]
            up: [0.0, 0.0, 1.0]
- 
  action: "add_extracts"
  extracts:
    e1:
      type: "relay"
      params:
        path: "all_output"
        protocol: "blueprint/mesh/hdf5"

@nicolemarsaglia
Copy link
Contributor

Thanks for the info @mlohry, I'm seeing what you're seeing. I will let you know what I find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants