TALLEM: Topological Assembly of Locally Euclidean Models