Guest xionmark Posted November 16, 2008 Share Posted November 16, 2008 Hello, How do you "clean" or reset a gdp (GEO_Detail *gdp) of any previous transformations from calling gdp->transform() ? I can't find anything in the docs and I've tried something like: UT_Matrix4 xform(1.0); xform.identity(); gdp->transform(xform); But no luck, the transforms continue to accumulate every time I transform the gdp to a new location. Thanks! Mark Quote Link to comment Share on other sites More sharing options...
edward Posted November 16, 2008 Share Posted November 16, 2008 In general, you can't because when you're transforming the geometry, you are modifying the point positions directly. So you have to decide what you want the "rest" position to be and transform it again to that. Quote Link to comment Share on other sites More sharing options...
Guest xionmark Posted November 16, 2008 Share Posted November 16, 2008 In general, you can't because when you're transforming the geometry, you are modifying the point positions directly. So you have to decide what you want the "rest" position to be and transform it again to that. Ah ha! That's it! Mucho gracias Edward! Mark 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.