Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I'm using the nglib with OpenCascade to create a surface mesh from a step file. Is there any way to map mesh triangles with the original geometry surfaces? In the header file I haven't found any function to do that. It looks like the .vol file format support this feature, is saving in this format and reading the information contained the only way to do that using nglib?
I think I'am doing something similar to your needs, i expain my solution for this, but i don't know if it is the best solution (i'am a newbie :) ).
Once you have meshed the geometry, with nglib, you can do a loop and get any surface element with Ng_GetSurfaceElement, then with OCC you can project each surface element over any face of the geometry.
To do that i use the GeomAPI package. You can read some info in the following link (in a browser):
Hopes it will be usefull.