src/membrane/remove_memb.jl
MEDYAN.remove_memb!
Remove the membrane identified by membid from the simulation.
All MembVertIdx tags on the removed membrane are removed, which nullifies the corresponding places in any connected links (links are kept alive but with null membrane-vertex references).
Uses swap-delete on c.membranes: if the removed membrane is not the last, the last membrane is moved into its slot and all MembVertIdx tags referencing the moved membrane are updated.
See also: make_memb!, make_memb_sphere!, make_memb_rectangle!