SLA Contour3D expanded with conversions supporting quads.

This commit is contained in:
tamasmeszaros 2019-11-04 14:33:29 +01:00
parent a8a5a884f9
commit 7808d09d06
14 changed files with 7777 additions and 259 deletions

View file

@ -19,10 +19,19 @@ static Slic3r::TriangleMesh load_model(const std::string &obj_filename)
return mesh;
}
TEST_CASE("Load object", "[Hollowing]") {
Slic3r::TriangleMesh mesh = load_model("20mm_cube.obj");
static bool _check_normals(const Slic3r::sla::Contour3D &mesh)
{
for (auto & face : mesh.faces3)
{
}
Slic3r::sla::Contour3D imesh = Slic3r::sla::convert_mesh(mesh);
return false;
}
TEST_CASE("Negative 3D offset should produce smaller object.", "[Hollowing]")
{
Slic3r::sla::Contour3D imesh = Slic3r::sla::Contour3D{load_model("20mm_cube.obj")};
auto ptr = Slic3r::meshToVolume(imesh, {});
REQUIRE(ptr);
@ -31,6 +40,8 @@ TEST_CASE("Load object", "[Hollowing]") {
REQUIRE(!omesh.empty());
std::fstream outfile{"out.obj", std::ios::out};
omesh.to_obj(outfile);