Hi all,
I am trying to create a group of two opposite edges on a rectangle, singular primitive which may have an incoming rotation (its for a HDA). What I am basically trying to achieve is a way to orient the bounding box on a group node "group by bounding box" so that I can avoid the below issue.
Grouping opposite edges with random rotation
1529 2 1-
- JakeOpp
- Member
- 20 posts
- Joined: March 2018
- Offline
-
- animatrix_
- Member
- 5100 posts
- Joined: Feb. 2012
- Offline
Hi,
If it's a quad, you can pick a random point, i.e. point 0, get it's edges, only pick the first edge. Then get its points and then the edges of all these points, and convert them to points. Excluding the first edge's that you picked before should leave you with the points of the opposite edge. You can easily find that edge that uses those 2 points.
You can also create a transformation matrix in a similar manner to reset the xform, group the edges, and then revert the transformation back.
If it's a quad, you can pick a random point, i.e. point 0, get it's edges, only pick the first edge. Then get its points and then the edges of all these points, and convert them to points. Excluding the first edge's that you picked before should leave you with the points of the opposite edge. You can easily find that edge that uses those 2 points.
You can also create a transformation matrix in a similar manner to reset the xform, group the edges, and then revert the transformation back.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- JakeOpp
- Member
- 20 posts
- Joined: March 2018
- Offline
-
- Quick Links

