Diagonalized mesh K2 component - messed edges

Hi,

i am trying to extract diag lines from a surface meshes by using : ( K2 ) diagonalize component + mesh edges component.

The mesh edges component work fine on quad meshes but when it gets diag meshes generate by K2 components the mesh edges are all messed up and it not possible to divide the naked edges from interior edges.

Is this a bug from k2 diagnalized component or is it my mistake ? thanks

20260909 mesh edges weird behavior on diagonalized meshes.gh (9.1 KB)

Align Vertices helps:

@cloudsvisitor77, in addition to what @martinsiegrist suggested, welding the mesh helps too if you want to leverage the Diagonalize + WarpWeft K2 combo:
20260909 mesh edges weird behavior on diagonalized meshes.gh (14.6 KB)


Many thanks @martinsiegrist , it works great :wink:

i really appreciate.

I think it might be the same bug?

HI @René_Corella and thanks a lot , way more complicated than approach suggested by Martin but also a great learning opportunity.

Many thanks to both of You @martinsiegrist and @René_Corella , i greatly appreciate

haha it was just ensuring you got lines in one direction vs the other — that’s order not complication :stuck_out_tongue: but yes overkill if that’s irrelevant, you just align vertices (or still weld, healthy habit…) then grab all internal edges as Martin showed

HI @Baris ..it makes sense because mismatching vertex could be considered as naked , that said i tried to zoom in the diagonalized mesh but i could not find the vertex mismatch you mentioned in the link above, the faces vertex seem coincident to me.

that said you are right concerning the fact that diag mesh has lot of naked edges inside, i don’t know if this is expected to happen but is seems still buggy actually @DanielPiker

I have a lot to learn when it comes to meshes…to me meshing was just passing some surfaces through some sort of mesh component and using the mesh for visualization or 3d printing but i am realizing how much more you can do when you learn what the meshed and made of and how to use the topology. thanks for your contribution

When you bake the mesh, you can see it. I don’t even have to zoom in.


Also, the fact, that welding fixes it, is a sign, that there a too many vertices.

@DanielPiker here’s a file:

2026-09-09_diagonalize-issue.gh (16.8 KB)

The duplicate point issue does not occur consistently.