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