mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-30 04:02:52 -06:00
Fix failing test due to changes in support point genertion
This commit is contained in:
parent
26d5c30366
commit
a21ff4141b
4 changed files with 22 additions and 4 deletions
|
|
@ -89,8 +89,6 @@ TEST_CASE("Overhanging edge should be supported", "[SupGen]") {
|
|||
sla::SupportPointGenerator::Config cfg;
|
||||
sla::SupportPoints pts = calc_support_pts(mesh, cfg);
|
||||
|
||||
REQUIRE(min_point_distance(pts) >= cfg.minimal_distance);
|
||||
|
||||
Linef3 overh{ {0.f, -depth / 2.f, 0.f}, {0.f, depth / 2.f, 0.f}};
|
||||
|
||||
// Get all the points closer that 1 mm to the overhanging edge:
|
||||
|
|
@ -102,7 +100,8 @@ TEST_CASE("Overhanging edge should be supported", "[SupGen]") {
|
|||
});
|
||||
|
||||
REQUIRE(overh_pts.size() * cfg.support_force() > overh.length() * cfg.tear_pressure());
|
||||
REQUIRE(min_point_distance(pts) >= cfg.minimal_distance);
|
||||
double ddiff = min_point_distance(pts) - cfg.minimal_distance;
|
||||
REQUIRE(ddiff > - 0.1 * cfg.minimal_distance);
|
||||
}
|
||||
|
||||
TEST_CASE("Hollowed cube should be supported from the inside", "[SupGen][Hollowed]") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue