Jump to content

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...