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

add_edges not showing edges? #25

Open
sebastianherscher opened this issue Apr 26, 2017 · 5 comments
Open

add_edges not showing edges? #25

sebastianherscher opened this issue Apr 26, 2017 · 5 comments

Comments

@sebastianherscher
Copy link

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?

@danielepanozzo
Copy link
Owner

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).

@ypiadyk
Copy link

ypiadyk commented Apr 26, 2017

Same problem

@danielepanozzo
Copy link
Owner

Meaning that you do not see anything also in the tutorial? This looks like a driver bug then. What GPU are you using?

@jpanetta
Copy link
Collaborator

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.

@ypiadyk
Copy link

ypiadyk commented Apr 26, 2017

Thanks for pointing out to callback_pre_draw! A lot of things are happening behind the scene)

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

4 participants