Jump to content

Align instances to edge flow problem


dpap

Recommended Posts

Hi guys!

I want to align instances (scaled boxes in this exaple) in a way that they follow the orientation of the edges of the template geometry.

I have defined the "rot" and "orient" point parameters needed by the copy sop but something goes wrong with edgeflow vectors that I get from the Polyframe node (pic1).

And this causes the irregularity you see at pics 2 and 3.

Is there way to fix this somehow?

Or maybe an alternative way to obtain the edgeflow vectors?

Thanks!

post-9497-0-42221000-1386031098_thumb.jp

post-9497-0-10158400-1386031106_thumb.jp

post-9497-0-48605400-1386031113_thumb.jp

Instances Aligned to edge flow 2.hipnc

Link to comment
Share on other sites

Polyframe SOP in First Edge mode will give you the vector in direction of the first edge which is not necessarily the direction you may expect but it heavily depends on the topology

to control it better you can get direction vector based on uv gradient or any attribute gradient in Polyframe SOP

torus_gradient_from_attribute.hipnc

  • Like 3
  • Thanks 1
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...