Jump to content
asuter

Adding polygon data to a new GU_Detail

Recommended Posts

Hi everyone,

 

Sorry for the remedial questions. Still new to the Houdini coding world.

 

I have a long vector of ordered positions in space (Houdini calls these Vertices? Is that true?), I also have per-face index information (What I think Houdini calls Points), as well as some normals and UVs. All of these collectively defining a single polygonal surface.

 

From this:

 

http://www.sidefx.com/docs/hdk13.0/hdk_geometry_intro.html

 

It seems that I need to populate the Point Index Map, the Vertex Index Map, the Primitive Index Map, and the Primitive List. Where my primitives represent the faces of the polygon. Does anyone have an example of code that does this? 

 

I'm then going to shove that GU_Detail in as a member of a packed prim, but that's a story for another day...

 

Thanks for any tips,

Alex

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×