About HAPI_GeoInfo::partCount

   3227   1   1
User Avatar
Member
62 posts
Joined: May 2006
Offline
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:

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
Edited by v2n - May 11, 2017 11:07:06
User Avatar
Member
62 posts
Joined: May 2006
Offline
Forget about my question. Setting HAPI_CookOptions.splitGeosByGroup to true make it behave as explained in the doc.

Nothing to see here .
  • Quick Links