Download vendor/libigl/tests/include/igl/mosek/bbw.cpp from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/mosek/bbw.cpp
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/tests/include/igl/mosek/bbw.cpp
-
curl -L -o bbw.cpp https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/tests/include/igl/mosek/bbw.cpp
949 Bytes
| TEST_CASE("mosek_bbw: decimated_knight", "[igl/copyleft/mosek]") | |
| { | |
| Eigen::MatrixXd V,C; | |
| Eigen::MatrixXi T,F,E; | |
| igl::readMESH(test_common::data_path("decimated-knight.mesh"),V,T,F); | |
| igl::readTGF(test_common::data_path("decimated-knight.tgf"),C,E); | |
| Eigen::MatrixXd W_groundtruth, Was, Wmo; | |
| igl::readDMAT( | |
| test_common::data_path("decimated-knight-matlab-active-set.dmat"),W_groundtruth); | |
| Eigen::VectorXi b; | |
| Eigen::MatrixXd bc; | |
| igl::boundary_conditions(V,T,C,Eigen::VectorXi(),E,Eigen::MatrixXi(),b,bc); | |
| igl::BBWData params; | |
| igl::mosek::MosekData mosek_params; | |
| igl::mosek::bbw(V,T,b,bc,params,mosek_params,Wmo); | |
| igl::writeDMAT("decimated-knight-mo.dmat",Wmo); | |
| // Mosek is less accurate | |
| REQUIRE (1e-3 > (Wmo-W_groundtruth).array().abs().maxCoeff()); | |
| } | |