oh it looks like your python version is too old (probably before python 3.10 :/). Maybe I should drop these typehints...unsupported operand type(s) for |: 'type' and 'NoneType'
From your example file, I get the following results from my current `master` branch (select top and bottom faces and invoke the macro) :
And from my PR #1 (select both sketches and invoke the macro) : This works for such simple cases, but not for more complex ones (such as the rectangle with rounded corners to circle loft).
Yeah, the easier way is to have a 1:1 mapping on both sides, but for some lofts it is not possible (e.g. perfect square to circle : 4 points vs n points). On my PR#1 I'm able to place such points, but I have no idea how to connect them (they aren't created by walking the wire in a particular direction, but by walking the wire's Edges array, which is not ordered as if you'd walk the wire).Yes would work for regular fittings, but when one face vertex count is different it won't work. I.e., see the single triangle image I showed.
EDIT :
Do you have a link to this fitting ?Look at my links, the fitting @edwilliams16 programmed with mesh.