SineVFX Posted May 13, 2019 Share Posted May 13, 2019 (edited) Hi, How can I get Start and End point positions from the "Find Shortest Path" node? I need these to be a point attributes to export them into Unity Point Cache format. Or another example, if I have a wireframe cube, Houdini drawing these edges of a cube, so it definitely knows all the start and end point for each line, so how can I get this data about Start and End points for cube edges? Here is the project file: Veins01.hip Edited May 13, 2019 by SineVFX Quote Link to comment Share on other sites More sharing options...
jamesr Posted May 14, 2019 Share Posted May 14, 2019 Does this help? Veins02.hip Quote Link to comment Share on other sites More sharing options...
SineVFX Posted May 14, 2019 Author Share Posted May 14, 2019 (edited) 8 hours ago, jamesr said: Does this help? Veins02.hip Thx, but this is not what I needed. Perhaps I didn't explain what I want well, let me try again. Example: I have a wireframe cube (https://prnt.sc/nocj4n) and I want to get Start and End point data for each line so I can use this data to manually draw these lines inside other engines, in my case Unity. In the case of a cube, I need 2 arrays of 12 points each to draw 12 lines. The first array will contain Start point position and the second, End points position. I can't find any info on how lines are drawn in Houdini, maybe I missing something and there is a hidden variable for each line/edge with start and end point coordinates. Edited May 14, 2019 by SineVFX 1 Quote Link to comment Share on other sites More sharing options...
jamesr Posted May 14, 2019 Share Posted May 14, 2019 Ah okay. Since direction seems important, see if the halfedge functions are of any help. https://www.sidefx.com/docs/houdini/vex/halfedges Quote Link to comment Share on other sites More sharing options...
SineVFX Posted May 14, 2019 Author Share Posted May 14, 2019 (edited) 1 hour ago, jamesr said: Ah okay. Since direction seems important, see if the halfedge functions are of any help. https://www.sidefx.com/docs/houdini/vex/halfedges Thx, I will look into it (It kinda generates double line on each intermediate edge, I don't need it https://prnt.sc/nol72r). But, directions aren't important at all, it does not matter if I draw a line from Start to End or from End to Start, I just need to draw these lines =) and for that, I need Start and End coordinates. Edited May 14, 2019 by SineVFX Quote Link to comment Share on other sites More sharing options...
jamesr Posted May 14, 2019 Share Posted May 14, 2019 Oh okay, I guess if it's just point positions only you're after, does this help? Check the geo spreadsheet, detail level. startsends.hip 1 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.