#pragma once #include #include #include #include #include namespace test_common { template void load_mesh( const std::string& filename, Eigen::PlainObjectBase& V, Eigen::PlainObjectBase& F) { auto find_file = [&](const std::string& val) { return std::string(TEST_DIR) + "/data/" + val; }; igl::read_triangle_mesh(find_file(filename), V, F); } template void load_matrix(const std::string& filename, Eigen::PlainObjectBase& M) { igl::readDMAT(std::string(TEST_DIR) + "/data/" + filename, M); } }