use set_data instead of set_color

This commit is contained in:
Alec Jacobson
2019-12-01 01:51:23 -05:00
parent 37b087a275
commit d46d9c8ef5
18 changed files with 113 additions and 134 deletions
+1 -4
View File
@@ -20,10 +20,7 @@ void solve(igl::opengl::glfw::Viewer &viewer)
igl::active_set_params as;
as.max_iter = 8;
igl::active_set(Q,B,b,bc,Aeq,Beq,Aieq,Bieq,lx,ux,as,Z);
// Pseudo-color based on solution
Eigen::MatrixXd C;
igl::jet(Z,0,1,C);
viewer.data().set_colors(C);
viewer.data().set_data(Z);
}
bool key_down(igl::opengl::glfw::Viewer &viewer, unsigned char key, int mod)