eloop Posted November 18, 2005 Share Posted November 18, 2005 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 Quote Link to comment Share on other sites More sharing options...
sibarrick Posted November 18, 2005 Share Posted November 18, 2005 Maybe it's quicker to copy all the points from your input gdp into a scratch one, then destroy the original, do all your munging around then merge the scratch one back into the original.... if you see what I mean. Just a suggestion, don't actually know if this is quicker. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.