jit.gl.mesh edgeflag

woffle6452's icon

Hi Everyone,

Using jit.gl.mesh. I cannot get the edgeflag inlet to do anything.

I would like to simply chop away some of the connections between vertices in a mesh. I am on a Dell PC running 5.0.7.

I have tried the following matrix inputs (all at the same dimension as the vertex matrix)
-1 plane float32 of zero and positive values
-1 plane char of zero and positive values
-1 plane float32 of negative and positive values

No change for any of those. Any suggestions?

Thanks for any advice, Dan

Nodanoma's icon

the edgeflag_matrix seems to have never worked entirely and is deprecated as of gl3 anyway, it seems… the way to go is to define which vertices are (inter-)connected using an index_array matrix or any matrix in the rightmost inlet holding such connection data. The setup isn't exactly intuitive, but basically you'll be sending a single-plane-matrix which contains twice as many cells as you'll want connections in your mesh, every odd's cell value connecting the respective index to the index value of the previous cell, and so on. Hence you can specify any connections between vertices using the index_array.

Max Patch
Copy patch and select New From Clipboard in Max.