Data conversion failed from Line to Mesh

I am using Kangaroo (BouncySolver) in Grasshopper.
The solver runs and outputs deformed geometry, but I cannot convert the solver output into a mesh.

When I try to use the solver output as a mesh, I get the warning:

“Data conversion failed from Line to Mesh”

It seems that the BouncySolver output consists of lines and/or points, not mesh topology, and therefore cannot be directly interpreted as a mesh.

My problem is understanding how to correctly obtain a mesh from the BouncySolver result, or how to set up the definition so that the solver output can be used as a valid mesh.

Thank you very much for your help.

20251216_kangaroo mesh_ent02.gh (22.4 KB)

Hello

you have to look at the output, just hover with the mouse or put a panel !

Mesh appears to be the last item

So use index -1

or measure the list length and remove 1

1 Like

Hi @juliapfeifer8,

Just adding on to what Laurent has already shown you, based on other safe kangaroo practices.

Often enough it’s useful to bring in your data into the Kangaroo solver via the Entwine component, in the order you wish; after solving, you can use Unflatten to retrieve this order, and explode the tree to extract what you want/need based on the order you know:

Otherwise you can keep what you have and simply ‘look for’ your mesh (or other known outputs) via Text Match:

20251216_kangaroo mesh_ent02_entwine.gh (26.6 KB)
20251216_kangaroo mesh_ent02_textmatch.gh (22.0 KB)

4 Likes

Thank you so much! It worked perfectly :slight_smile:

Thank you too!!! Really helpful :slight_smile:

1 Like