primpoints() with ends gives vertex count?

   800   2   1
User Avatar
Member
133 posts
Joined: 7月 2007
Offline
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.
Edited by Len - 2024年3月5日 19:14:47
User Avatar
Member
8822 posts
Joined: 7月 2007
Online
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 - 2024年3月5日 21:51:09
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
133 posts
Joined: 7月 2007
Offline
Thanks. That explains it.
  • Quick Links