Jump to content
Sign in to follow this  
dpap

Align instances to edge flow problem

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Thank you very much Anim!!!

Very nice approach!

it heavily depends on the topology

you are so right!

:D

Edited by dpap

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×