This node calculates the dual of the input mesh. This means that faces
get replaced with vertices and vertices with faces. There is an option
to preserve boundaries. In that case vertices and edges on the boundary
stay intact.
{F11336461}
With preserve boundary:
{F11336506}
And Without:
{F11336513}
Attributes are propagated where possible:
- Point domain goes to face domain and vice versa
- Edge domain and Face corner domain gets mapped to itself
Because of the duality, the attributes get mapped to themselves when applying the node twice.
This video explains the propagation of attributes:
{F12669759}
NOTE: Does not work well with non-manifold geometry, like
an edge connected to more than 2 faces, or a vertex connected to only
two faces, while not being in the boundary.
This is because there is no good way to define the dual at some of those points.
In the following vertex you can't order the faces surrounding it in a way such that
adjacent faces remain adjacent. At the moment non-manifold vertices are just removed
for this reason.
{F11467270}
Thanks to Leul Mulugeta (@Leul) for help with the ascii diagrams in the code comments.