Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topology Sorting #1721

Closed
zeffii opened this issue Jun 20, 2017 · 3 comments
Closed

Topology Sorting #1721

zeffii opened this issue Jun 20, 2017 · 3 comments

Comments

@zeffii
Copy link
Collaborator

zeffii commented Jun 20, 2017

i'm writing this to address recent questions about what it means to sort topology, and what unsorted topology is.

There are various states of unsorted / sorted topology

image

A = completely unsorted
B = unsorted verts, but sorted edges
C = sorted verts, unsorted edges
D = sorted verts and edges.

  • Most of the time you will encounter type A. There are many situations where it is not relevant to us how the topology is indexed.
  • for 2d stuff (profiles, paths) however it does help to have at least sorted verts (state C, or D).
    • Nodes that don't take edges will assume that the incoming set of verts is already sorted in the right sequence.
@zeffii
Copy link
Collaborator Author

zeffii commented Jun 20, 2017

If you are getting weird results with edges that seem to be all over the place, then you probably are feeding the geometry to a Node that expects a certain sorted state.

We have various ScriptedNodeMK1 and SNLite Scripts to help us generate a meaningful sort. Arguably we should add these to a topo sort node.

@Durman
Copy link
Collaborator

Durman commented Jun 20, 2017

I think that sometimes direction of sorting have meaning. And what point are first in array. When line of points are looping we have many variants of sorting.

@zeffii
Copy link
Collaborator Author

zeffii commented Jun 20, 2017

Yes, there are a few more variants, some more specialised than others. Like:

  • Tree structures (with a single trunk and many branches, and subbranches)
  • disjoint polylines
  • Networks like a LAN

sorting for all of those requires 'agency' (extra parameters to consider for the sort - other than purely rearranging verts/indices to make a sequence sorted )

@zeffii zeffii closed this as completed Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants