Design of a custom preformed titanium membrane