Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverse transformation #1

Open
jonnest opened this issue Feb 14, 2023 · 0 comments
Open

Inverse transformation #1

jonnest opened this issue Feb 14, 2023 · 0 comments

Comments

@jonnest
Copy link

jonnest commented Feb 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant