confmap
confmap copied to clipboard
Inverse transformation
Hi everyone,
I am using the BFF method to map a 3D surface with one boundary onto a uniform disk. The algorithm for that works just fine.
The way I did the mapping is seen here:
vertices, faces = readTriangularSurfaceMesh(stl_file) # some function of mine
cm = BFF(vertices, faces)
image = cm.layout()
cm_unit = cm.parameterize_uniform()
# create new triangle mesh which is writable
cm_unit = TriangleMesh(cm_unit._vertices, cm_unit._faces, False)
# normalize coordinates
cm_unit.normalize()
# vertices of the 2d disk
vertices_unit = cm_unit._vertices
Is there any way within the repo to get the inverse of this transformation from 3d to 2d? I would like to apply the inverse of this exact mapping on another 2d grid to get a 3d triangulated mesh.
Looking forward to any suggestions.
Best regards Jonathan