Jump to content

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


Recommended Posts

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
Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...