Getting Curve point count

   3727   1   0
User Avatar
Member
62 posts
Joined: May 2006
Offline
Hi,

I can't figure out how to get the number of points of each curves in my SOP.
If the geo part is a polymesh, HAPI_GetFaceCounts() is giving me this information.
But if the geo part is a curve, it does nothing.

HAPI_CurveInfo got a vertexCount, but it returns just the first curve point count.
My geo got several curves with different point count, so I need more than that.

Is there something like HAPI_GetPointCountPerCurve() ?

Thanks
Guillaume
User Avatar
Staff
553 posts
Joined: Sept. 2016
Offline
Hi Guillaume,

HAPI_GetCurveCounts() should be what you're looking for:

http://www.sidefx.com/docs/hengine16.0/_h_a_p_i_8h.html#ae71455a0af5af8e1538b55ed27df676e [www.sidefx.com]
  • Quick Links