mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-05 06:41:10 +00:00
Covers src/slic3r/Utils, src/slic3r/plugin, src/slic3r/Config, src/libvgcode, src/dev-utils, src/OrcaSlicer.cpp and tests/, the directories left after src/slic3r/GUI and src/libslic3r. Generated with clang-tidy misc-include-cleaner. libvgcode's own headers are included by relative path as in the rest of that library, and Catch2 and pybind11 with angle brackets as elsewhere in the repo.
27 lines
675 B
C++
27 lines
675 B
C++
#include <iostream>
|
|
#include <fstream>
|
|
#include <catch2/catch_all.hpp>
|
|
#include "libslic3r/TriangleMesh.hpp"
|
|
#include "libslic3r/libslic3r.h"
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
#include "libslic3r/SLA/Hollowing.hpp"
|
|
|
|
#include "test_utils.hpp"
|
|
|
|
TEST_CASE("Hollow two overlapping spheres") {
|
|
using namespace Slic3r;
|
|
|
|
TriangleMesh sphere1 = make_sphere(10., 2 * PI / 20.), sphere2 = sphere1;
|
|
|
|
sphere1.translate(-5.f, 0.f, 0.f);
|
|
sphere2.translate( 5.f, 0.f, 0.f);
|
|
|
|
sphere1.merge(sphere2);
|
|
|
|
sla::hollow_mesh(sphere1, sla::HollowingConfig{}, sla::HollowingFlags::hfRemoveInsideTriangles);
|
|
|
|
write_debug_obj("hollowing/twospheres.obj", sphere1);
|
|
}
|
|
|