Len White

Len

About Me

Tech Artist - Heart Machine
EXPERTISE
Gamedev
INDUSTRY
Gamedev

Connect

LOCATION
United States

Houdini Skills

Availability

Not Specified

Recent Forum Posts

primpoints() with ends gives vertex count? March 6, 2024, 10:49 a.m.

Thanks. That explains it.

primpoints() with ends gives vertex count? March 5, 2024, 7:11 p.m.

I'm freaking out a little cause vex primpoints() seems to be returning vertex count and not point count when using ends sop on a closed curve:
- Add a default circle SOP
- Append ends, set to unroll with shared points
- Append Wrangle in Points, Prim, or Detail mode
- Add code: printf("%i points\n", len(primpoints(0,0)));

This prints the vertex count for me, NOT the point count (one less) since one is shared with two verts.
The ends sop reports 12 points, 13 verts, 1 prim.
The print gives 13 points.

How am I doing this wrong or misinterpreting things?

EDIT: Just printed the points from primpoints() and it's duplicating point 0 at the end. Still doesn't make sense to me.

Find Shortest Path - How to make & use its adjacency array? Jan. 24, 2024, 10:24 p.m.

Trying to get a handle on this same topic.
It appears to me the adjacency array only adds to the existing geo edges rather than replacing?
I'm trying to limit paths going downhill by building the adjacency array by getting all neighbors of each point then filtering those for ones that only go uphill. So the adjacency array is subset of all neighbors of each point.
However, paths still snake down to lower y despite confirming that the adjacency array doesn't include any of those edges at each point. Is this not possible with this approach? Thx.