View Full Version : "decrypt" Smoothing Group Dword

04 April 2008, 12:17 PM
So i get that smoothing group DWORD from max containing the smoothing group numbers.
I need to decrypt it to compare smoothing groups of different faces.
How can i do that?

Or maybe i dont have to do that to compare them? This is from the SDk docs:
A key method to this class is AddNormal(). It is used when a face is going to add its normal to a
vertex. This method is passed the normal and the smoothing information for that face. It checks
if the normal passed shares smoothing information with the existing normal. If it does, the
normal is added in, and the smoothing bits are bitwise OR-ed in.

EDIT: I dont have to

DWORD smGroup;

Smoothing group bits for the face.

Each bit of this 32 bit value represents membership in a smoothing group. The least significant bit represents smoothing group #1 while the most significant bit represents group #32. If two adjacent faces are assigned the same smoothing group bit, the edge between them is rendered smoothly.

CGTalk Moderation
04 April 2008, 12:17 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.