In POPto there is a way to go from primitive index to a list of vertices.Is it possible to do the opposite, either in the GLSL POP or POPto? Given a vertex id get a list of primitives indices that the vertex id appears in?
When I update the position of a vertex I want it to take into account the volume constraints of the tetrahedra it appears in.
Hi @matigekunst,
So vertices are unique per primitive in TD, and one simple way to get the primitive index in POPs is to use the _PrimI built-in attribute applied to vertices. See attached toe.
VertexPrim.toe (3.6 KB)
If you’re looking for a list of primitives per point that’s a bit more involved, _PrimI applied to points will only give you the first primitive the point be belongs to, except when points are not shared (after a facet POP/unique for example).
I think it can currently be done with the GLSL POPs in their current form, I can share a toe in a bit if you’re interested