I'm using OpenMesh on Linux. Lets say I have a model composed of two boxes, top box and bottom box, one evenly on top of the other. I import the model where each box is a separate mesh. In my app I can select to highlight the top box or the bottom box as different components.
Now I want to merge each mesh (i.e., each box) into a single mesh (or even start out creating a single mesh), but the problem is that the bottom side of the top box uses points drawn in one direction and the top side of the bottom box is drawn in the opposite direction and OpenMesh doesn't allow this when adding all elements to a single mesh.
The problem is described in this post. https://stackoverflow.com/questions/24205196/addfacecomplex-edge-error-in-openmesh
Basically, the error is
This error results from some of the faces' vertices being added in the wrong order.
And to add to my problem, this is how these file formats are generated and given to me. It's not that the vertices are in the wrong order as normally I'd just place each set of vertices in their own mesh. But in order to use OpenMesh in the way it's meant (searching the entire mesh for specific edge types and not just a single component or mesh that meets another mesh), I need to add each mesh component as part of a single mesh.
Does anyone have thoughts on how to do this with OpenMesh or working with meshes in general?