Jump to content

copyPointAttributes has no effect


Recommended Posts

I'm trying to incorporate copyPointAttributes function from hdk as a inline cpp but for some reason it has no effect

The code attached below.

First argument is the hou.pwd().geometry and the second is the frozen geometry from a different node. The point count is the same.

void copyAtribs(GU_Detail *gdp, const GU_Detail *refGeo)
    {
    for (unsigned i=0; i<refGeo->points().entries(); ++i)
    {

        GEO_Point *         pps = gdp->points()[i];
        const GEO_Point *   ppr = refGeo->points()[i];
        gdp->copyPointAttributes(*pps,*ppr);
    }

}

Edited by kubabuk
Link to comment
Share on other sites

  • 2 weeks later...

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...