Jump to content

Sort Points by UV


mischka

Recommended Posts

Hey guys,

I need to sort points by UV, cylindrian, to get clean prim normals for extrude, sweep or skin ... for further use.

Everything seems to be fine except of one side which doesnt get the right sort... this has a bad effect on extrude, sweep or skin.
Take a look on the last node, "edit node".

After a quick UV viewport check i noticed that one side has a different length than the rest. Everything happens after sort... i dont know why.

Thanks

uvSortProblem.hipnc

uvSort.jpg

Edited by mischka
Link to comment
Share on other sites

Hello,

I am not sure what are you aiming for. Do you really need to have your uv project inside the loop? If you move it outside just before of the foreach_begin2 it gets skinned correctly.

If you must use the uvproject inside the loop you can put a second uv project outside of it and assign a different name for the attribute instead of "uv" and use this one for get the correct sort of the points.

  • Thanks 1
Link to comment
Share on other sites

Hey @Andrea,

thank you so much for your response! The "UV project" outside the loop driven by a new "attribute" name was the solution for my sorting Problem.

But somehow it doesnt solve my main Problem. The goal is to extrude/copyStamp with prim normals looking outside or inside. 

The "UV project" inside the loop seems to work except for one side...

 

My aim is:

1: To seperate the sides with the loop. "done"

2: Margin the sides and resample the middle part. "done"

3: Loop once again for more iterations at the middle part. "prim normals issue"

 

 

I've attached a new file. 

ExtrudeNormals.hipnc

PrimNormals.jpg

Edited by mischka
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...