If they were, you could get the naked perimeter edges (as closed polylines), and make a mesh from these two point lists. An alternative approach (assuming your meshes are always planar), is to simply offset the mesh (with the solid flag on) using the known height as the offset distance.
I know tried to ways of doing, but what dit you mean with the naked perimeter edges? So, python, then getting the naked edges and then what I can do with it? I understand points can be connected, but how did you mean it?
If you have two topologically identical polylines (i.e. the naked mesh perimeters), it’s trivial to bridge these with a mesh. Here’s an unscripted implementation: