A prosthetic valve leaflet is placed across a bar, and the bar is positioned such that the leaflet drapes over the bar and blocks a beam of light emitted by a light source. While the leaflet remains draped over the bar, the bar is elevated at least until the leaflet stops blocking the beam. An elevation of the bar from the beam at which the leaflet stopped blocking the beam is identified. Other embodiments are also described.