Guillaume Laforge
v2n
About Me
EXPERTISE
Developer
INDUSTRY
Film/TV
Connect
LOCATION
Canada
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Getting Curve point count June 21, 2017, 9:23 p.m.
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
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
About HAPI_GeoInfo::partCount May 11, 2017, 11:26 a.m.
Forget about my question. Setting HAPI_CookOptions.splitGeosByGroup to true make it behave as explained in the doc.
Nothing to see here .
Nothing to see here .
About HAPI_GeoInfo::partCount May 11, 2017, 11:06 a.m.
Hi,
I would like to know if it is possible to get more than one part of the same type in a geometry ?
for example, in the following code snippet:
Is it possible to get meshPartCount greater than one?
The documentation [sidefx.com] is saying that “there will be 1 part per primitive group”, so I tried to query parts in a digital asset that is creating a simple polymesh with two primitive groups. HAPI always returns one part of type HAPI_PARTTYPE_MESH.
I'm confused about the “per primitive group” mentionned in HAPI doc. Is it the same than classic Houdini groups ?
Thanks
I would like to know if it is possible to get more than one part of the same type in a geometry ?
for example, in the following code snippet:
int meshPartCount = 0; for(int i=0; i< geoInfo.partCount; ++i) { HAPI_PartInfo partInfo = GetPartInfo(i); if(partInfo.type == HAPI_PARTTYPE_MESH){ meshPartCount++ } }
Is it possible to get meshPartCount greater than one?
The documentation [sidefx.com] is saying that “there will be 1 part per primitive group”, so I tried to query parts in a digital asset that is creating a simple polymesh with two primitive groups. HAPI always returns one part of type HAPI_PARTTYPE_MESH.
I'm confused about the “per primitive group” mentionned in HAPI doc. Is it the same than classic Houdini groups ?
Thanks