Search - User list
Full Version: About HAPI_GeoInfo::partCount
Root » Houdini Engine API » About HAPI_GeoInfo::partCount
v2n
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
v2n
Forget about my question. Setting HAPI_CookOptions.splitGeosByGroup to true make it behave as explained in the doc.

Nothing to see here .
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB