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.
primpoints() with ends gives vertex count?
808 2 1- Len
- Member
- 133 posts
- Joined: July 2007
- Offline
- tamte
- Member
- 8833 posts
- Joined: July 2007
- Offline
Len
EDIT: Just printed the points from primpoints() and it's duplicating point 0 at the end. Still doesn't make sense to me.
primpoints() will return points that the prim vertices are attached to, it will not deduplicate point numbers, so you will essentially get point per vertex
Edited by tamte - March 5, 2024 21:51:09
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- Len
- Member
- 133 posts
- Joined: July 2007
- Offline
-
- Quick Links