computation of mscomplexes for trimeshes