Jump to content

Gdp->clearanddestroy() - What's It Doing ?


eloop

Recommended Posts

Hi,

I'm trying to write a creation sop that add's a bunch of points to the gdp, then makes some prims with them, always keeping the same gdp->points() modulo moving their positions around.

So each cook instead of gdp->clearAndDestroy() I simply delete all the primitives (btw is there a fast single call to do this ?). This works, but I have a display anomaly where it looks like the normals that have been calculated to display the first geometry have been cached and aren't being re-calculated as the prims are changed. I've tried gdp->destroyCache() to no avail (actually not sure what it's doing ?). Doing something as simple as placing a Facet sop down (with no options checked) after the node fixes the problem.

-Drew

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