Copied code from SFF from here: https://github.com/zhenchen-jay/WrinkledTensionFields/tree/main/TFWShell