I posted something here for connecting between meshes with a smooth surface tangent to both
also this (shown with round sections, but the same approach should work for other profiles)
If you can describe more about the problem you are trying to solve though we might be able to direct to other approaches.