Jump to content
SineVFX

Start and End point positions from "Find Shortest Path" node

Recommended Posts

Posted (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 by SineVFX

Share this post


Link to post
Share on other sites
Posted (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 by SineVFX

Share this post


Link to post
Share on other sites
Posted (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 by SineVFX

Share this post


Link to post
Share on other sites

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

 

  • Like 1

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

×