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

Using ARAP to flatten a 3D textured mesh into 2D? #214

Open
HansVansWardikins opened this issue Oct 3, 2023 · 0 comments
Open

Using ARAP to flatten a 3D textured mesh into 2D? #214

HansVansWardikins opened this issue Oct 3, 2023 · 0 comments

Comments

@HansVansWardikins
Copy link

Hello,

I am looking to replicate part of the work documented in Computational Thermoforming, in particular the texture flattening performed in the calibration process in section 3.3.

This is the textured model that I want to flatten, I am able to import it and add the texture from a .png image along with the vertex texture coordinates (vt) using PyVista:
image

I am able to use LibIGL ARAP to flatten the mesh onto the UV plane and plot as such:
image
image

However what I really want to be able to do is flatten the mesh once it has been textured to create a 2D representation of the texture, there doesn't seem to be a way of easily doing this using meshplot as it doesnt support the use of textures other than the basic procedural checkboard shown above, at least I cant find anything in the docs about texturing.

It seems I need a way to store vertex colours as processed from the .png texture image and vt before replotting them to the UV plane:
image

Does anyone have any ideas on how this may be achieved?

Thanks in advance,
Alex

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