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
Found 4 posts.
Search results Show results as topic list.
Houdini Engine API » Getting Curve point count
- v2n
- 62 posts
- Offline
Houdini Engine API » About HAPI_GeoInfo::partCount
- v2n
- 62 posts
- Offline
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 .
Houdini Engine API » About HAPI_GeoInfo::partCount
- v2n
- 62 posts
- 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:
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
Edited by v2n - 2017年5月11日 11:07:06
Technical Discussion » GCC 4.1 - why dropped?
- v2n
- 62 posts
- Offline
Hi Halfdan
For example, a SOP operator will crash on the first call to a method from GU_Detail/GEO_Detail (like gdp->clearAndDestroy() or GU_PrimPoly::build(gdp, 3, GU_POLY_CLOSED) ).
On the other hand I can build the field3dtools plugin (the one shipped with the houdini toolkit) using gcc4.1.2 and I'm able to load field3d file (using the file node).
So if you are able to build a SOP operator using gcc4.1 let me know !
Cheers,
Guillaume Laforge
What kind of crashes are you running into?
For example, a SOP operator will crash on the first call to a method from GU_Detail/GEO_Detail (like gdp->clearAndDestroy() or GU_PrimPoly::build(gdp, 3, GU_POLY_CLOSED) ).
On the other hand I can build the field3dtools plugin (the one shipped with the houdini toolkit) using gcc4.1.2 and I'm able to load field3d file (using the file node).
So if you are able to build a SOP operator using gcc4.1 let me know !
Cheers,
Guillaume Laforge
-
- Quick Links