Hi Masoud,
unless this is an academic exercise, you could just set polyexpand to 'surfaces' or simply use a polyextrude 'inwards'. Otherwise try
joining each curve so it's one primitive per curve,
reverse the winding order on one of them so they match, and
interpolate a geometry of choice between both curves:
vector bb = relbbox(0, v@P);
vector pos_crv_0 = primuv(1, 'P', 0, bb.z);
vector pos_crv_1 = primuv(1, 'P', 1, bb.z);
vector pos_blend = lerp(pos_crv_0, pos_crv_1, bb.x);
v@P = pos_blend;
Curve_interpolate_KM.hipnc