AntoineSfx Posted June 24, 2019 Share Posted June 24, 2019 I 'm using Houdini for actual woodworking, i.e I have a furniture that I split into primitives, and those primitives are meant to be used as inputs for UVLayout, using my available stock in input 2 as islands. Now I would like to limit UVLayout to 90 degrees rotations (because wood grain, patterns in the stock, and so on), and align each primitive in the input 1 along their principal direction. I defined principal direction like this: each segment votes with its angle, and its vote count is multiplied by its length. The winner is the angle with most votes. This should give 135 degrees in this example: I can't find a hash table in VEX. What data structure is available in VEX to do that, or what other solution is available ? I feel like this is something that can be solved with attribute promotion or some abused Fuse but I can't figure it out. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.