mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
SLA Contour3D expanded with conversions supporting quads.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user