-
Notifications
You must be signed in to change notification settings - Fork 13
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
add_edges not showing edges? #25
Comments
This looks fine. Could you try the tutorial 105: http://libigl.github.io/libigl/tutorial/105_Overlays/main.cpp If that does not work, then it might be a shader problem (I doubt it, but if you are sure the B and F are correct there is not much else that could go wrong). |
Same problem |
Meaning that you do not see anything also in the tutorial? This looks like a driver bug then. What GPU are you using? |
Are you trying to add the edges from the solve() function? If so, they're probably being overridden by callback_pre_draw. You should add your visualization code to callback_pre_draw instead. |
Thanks for pointing out to callback_pre_draw! A lot of things are happening behind the scene) |
I've been trying to show my displacement vectors for a while and cannot get any edges to show up. Here's what I'm calling:
viewer.data.clear();
viewer.data.set_mesh(B, F);
viewer.data.add_edges(B, V,RowVector3d(0,0,1));
I know that B and V are both correct, so it should just draw a displacement line for each vertex? What am I doing wrong?
The text was updated successfully, but these errors were encountered: