From bb62f36df3915f125c7460c6c12ab88a47efe798 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 8 Jan 2020 17:10:11 +0100 Subject: Add tests for EigenMesh3D raycaster with hole support. Tests fail! Supports are intersecting the object when holes are added. --- tests/test_utils.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test_utils.hpp (limited to 'tests/test_utils.hpp') diff --git a/tests/test_utils.hpp b/tests/test_utils.hpp new file mode 100644 index 000000000..b129cc79f --- /dev/null +++ b/tests/test_utils.hpp @@ -0,0 +1,21 @@ +#ifndef SLIC3R_TEST_UTILS +#define SLIC3R_TEST_UTILS + +#include +#include + +#if defined(WIN32) || defined(_WIN32) +#define PATH_SEPARATOR R"(\)" +#else +#define PATH_SEPARATOR R"(/)" +#endif + +inline Slic3r::TriangleMesh load_model(const std::string &obj_filename) +{ + Slic3r::TriangleMesh mesh; + auto fpath = TEST_DATA_DIR PATH_SEPARATOR + obj_filename; + Slic3r::load_obj(fpath.c_str(), &mesh); + return mesh; +} + +#endif // SLIC3R_TEST_UTILS -- cgit v1.2.3