Triremesh holes and outer mesh that they share same boundary

If the inner and outer shape come from splitting a surface with a curve, you can join them into a polysurface before input and preserve the feature curve while also matching vertices, as shown here