An apparatus for reshaping a ventricle of a heart, the ventricle having a first wall section and a second wall section that is disposed opposite to the first wall section, the apparatus comprising: a first catheter configured to pass from inside the ventricle to outside the ventricle through a first hole in the first wall section, the first catheter having a first lumen; a first fluid-tight bag (6, 6') having a first inlet that is configured to accept a fluid and a distal end that is configured to pass through the first lumen and through the first hole in the first wall section and extend outside the ventricle, wherein the first fluid-tight bag (6, 6') is configured so that when the distal end has passed through the first hole and has been extended outside the ventricle, at least a portion of the distal end that extends outside the ventricle has a diameter that is larger than the first hole; a first substance configured for introduction into the first fluid tight bag (6, 6') in a fluid state via the first inlet after the distal end of the first fluid tight bag has passed through the first hole and has been extended outside the ventricle, wherein the first substance is configured to solidify after being introduced into the first fluid tight bag; a second catheter configured to pass from inside the ventricle to outside the ventricle through a second hole in the second wall section, the second catheter having a second lumen; a second fluid-tight bag (6, 6') having a second inlet that is configured to accept a fluid and a distal end that is configured to pass through the second lumen and through the second hole in the second wall section and extend outside the ventricle, wherein the second fluid-tight bag is configured so that when the distal end has passed through the second hole and has been extended outside the ventricle, at least a portion of the distal end that extends outside the ventricle has a diameter that is larger than the second hole; a second substance configured for introduction into the second fluid tight bag in a fluid state via the second inlet after the distal end of the second fluid tight bag has passed through the second hole and has been extended outside the ventricle, wherein the second substance is configured to solidify after being introduced into the second fluid tight bag; and an elongated member adapted to pull the first substance towards the second substance after the first substance and the second substance have solidified. a first catheter configured to pass from inside the ventricle to outside the ventricle through a first hole in the first wall section, the first catheter having a first lumen; a first fluid-tight bag (6, 6') having a first inlet that is configured to accept a fluid and a distal end that is configured to pass through the first lumen and through the first hole in the first wall section and extend outside the ventricle, wherein the first fluid-tight bag (6, 6') is configured so that when the distal end has passed through the first hole and has been extended outside the ventricle, at least a portion of the distal end that extends outside the ventricle has a diameter that is larger than the first hole; a first substance configured for introduction into the first fluid tight bag (6, 6') in a fluid state via the first inlet after the distal end of the first fluid tight bag has passed through the first hole and has been extended outside the ventricle, wherein the first substance is configured to solidify after being introduced into the first fluid tight bag; a second catheter configured to pass from inside the ventricle to outside the ventricle through a second hole in the second wall section, the second catheter having a second lumen; a second fluid-tight bag (6, 6') having a second inlet that is configured to accept a fluid and a distal end that is configured to pass through the second lumen and through the second hole in the second wall section and extend outside the ventricle, wherein the second fluid-tight bag is configured so that when the distal end has passed through the second hole and has been extended outside the ventricle, at least a portion of the distal end that extends outside the ventricle has a diameter that is larger than the second hole; a second substance configured for introduction into the second fluid tight bag in a fluid state via the second inlet after the distal end of the second fluid tight bag has passed through the second hole and has been extended outside the ventricle, wherein the second substance is configured to solidify after being introduced into the second fluid tight bag; and an elongated member adapted to pull the first substance towards the second substance after the first substance and the second substance have solidified.