Reverted gasket-triangle to working code