Download vendor/libigl/tutorial/111_MatCap/main.cpp from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tutorial/111_MatCap/main.cpp
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/tutorial/111_MatCap/main.cpp
-
curl -L -o main.cpp https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tutorial/111_MatCap/main.cpp
605 Bytes
| int main(int argc, char *argv[]) | |
| { | |
| igl::opengl::glfw::Viewer v; | |
| Eigen::MatrixXd V; | |
| Eigen::MatrixXi F; | |
| igl::read_triangle_mesh( | |
| argc>1?argv[1]: TUTORIAL_SHARED_PATH "/armadillo.obj",V,F); | |
| Eigen::Matrix<unsigned char,Eigen::Dynamic,Eigen::Dynamic> R,G,B,A; | |
| igl::png::readPNG(argc>2?argv[2]: TUTORIAL_SHARED_PATH "/jade.png",R,G,B,A); | |
| v.data().set_mesh(V,F); | |
| v.data().set_texture(R,G,B,A); | |
| v.data().use_matcap = true; | |
| v.data().show_lines = false; | |
| v.launch(); | |
| } | |