I need to implement an importer to 3ds Max that will load some custom mesh data. I have implemented most of the loading code, but I still have one problem to resolve.
The data format I need to use uses structures called 'Hard Edges' to describe surface smoothness, but the 3ds Max uses 'Smoothing Groups' and while both approaches work very well I need some way to convert one to the second.
Basically I have some mesh vertices/faces loaded into 3ds, now I need to compute Smoothing Groups for those faces, based on the list of hard edges in my file.
Can you point me to any algorithm or just any clue that will help me implement the conversion?
I tried to search google, etc., there are many tutorials and articles about smoothing groups but from the view of 3ds Max user (modeling). I can't find anything about doing the same with code (and I don't ask about API for doing this, I know the API but I need an algorithm to compute SGs).