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

If Scaf parametrize changes the amount of vertex and faces is possible to use it to switch 3d -> 2d? #10

Open
FrankEscobar opened this issue May 15, 2019 · 7 comments

Comments

@FrankEscobar
Copy link

I mean using something as simple as

ScafData scaf_data;
scaf_data.add_new_patch(V, F, Eigen::RowVector2d(0, 0));
scaf_data.mesh_improve(false, true);
cout << "V_init: " << V.rows() << " F_init: " << V.rows() << endl;
cout << "V_num: " << scaf_data.v_num << " F_num: " << scaf_data.f_num << endl;

I get that the V and F num has been changed so it cannot be used to parametrice 3d spaces into 2d spaces or am I wrong?

Regards.

@jiangzhongshi
Copy link
Owner

jiangzhongshi commented May 15, 2019 via email

@FrankEscobar
Copy link
Author

Mmm then how should I proceed to generate uvs from that mesh if I only can access to the virtual ones?

Btw is this implementation diffent from the Libigl examples one?

Thank you for your time

@jiangzhongshi
Copy link
Owner

If you want to retrieve the UV from this point, you can simply get
data.w_uv.topRows(data.mv_num)
and the input F

@FrankEscobar
Copy link
Author

Thank you! there is any advantage on using this instead the example providen in LibIGL?

@jiangzhongshi
Copy link
Owner

jiangzhongshi commented May 21, 2019 via email

@FrankEscobar
Copy link
Author

What are the major differences between this code and the one already included in libigl? (I mean scaf_bin)

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

2 participants