MEDYAN.remove_memb!

Tuple{MEDYAN.Context, MEDYAN.MembId}

remove_memb!(c::Context, membid::MembId)::Nothing

Remove the membrane identified by membid from the simulation.

All MembVertIdx and InTriPointIdx 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 / in-triangle-point 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 and InTriPointIdx tags referencing the moved membrane are updated.

See also: make_memb!, make_memb_sphere!, make_memb_rectangle!