On 16/06/2015 at 09:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 15
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C.O.F.F.E.E ; C++ ; PYTHON ;
---------
I need to connect faces of an object to faces of itself. So, we are dealing with just one object but I guess this could apply even to two different objects.
Also, I just need to connect ONE face (four vertexes) with ANOTHER face (four vertexes).
If I know the index of both faces (hence, I also know the indexes of all vertexes), I can easily determine what vertexes of each face are nearer.
So, knowing all that, how can I determine, after finding vertex A0 from polygon A and vertex B0 from polygon B, that are the closest vertexes, which direction must I follow in each polygon to connect all remaining vertexes without twisting?
I think the Bridge command does that. So, what algorithm does it use?