Skip to content

Commit

Permalink
avoid subtraction on indices
Browse files Browse the repository at this point in the history
  • Loading branch information
Alec Jacobson committed Oct 2, 2022
1 parent 2c8a6b6 commit 667d5b8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ int main(int argc, char *argv[])
1.0,1.0,0.0,
1.0,1.0,1.0).finished();
const Eigen::MatrixXi F = (Eigen::MatrixXi(12,3)<<
1,7,5,
1,3,7,
1,4,3,
1,2,4,
3,8,7,
3,4,8,
5,7,8,
5,8,6,
1,5,6,
1,6,2,
2,6,8,
2,8,4).finished().array()-1;
0,6,4,
0,2,6,
0,3,2,
0,1,3,
2,7,6,
2,3,7,
4,6,7,
4,7,5,
0,4,5,
0,5,1,
1,5,7,
1,7,3).finished();

// Plot the mesh
igl::opengl::glfw::Viewer viewer;
Expand Down

0 comments on commit 667d5b8

Please sign in to comment.