Add an additional sla test object for support generation.
This commit is contained in:
parent
fefde79c89
commit
4569a6026a
7164
tests/data/extruder_idler.obj
Normal file
7164
tests/data/extruder_idler.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -260,7 +260,7 @@ void test_support_model_collision(
|
||||
|
||||
// Set head penetration to a small negative value which should ensure that
|
||||
// the supports will not touch the model body.
|
||||
supportcfg.head_penetration_mm = -input_supportcfg.head_front_radius_mm;
|
||||
supportcfg.head_penetration_mm = -1.; // 1 mm should be more than enough
|
||||
|
||||
test_supports(obj_filename, supportcfg, byproducts);
|
||||
|
||||
@ -297,7 +297,8 @@ const char * const AROUND_PAD_TEST_OBJECTS[] = {
|
||||
|
||||
const char *const SUPPORT_TEST_MODELS[] = {
|
||||
"cube_with_concave_hole_enlarged_standing.obj",
|
||||
"A_upsidedown.obj"
|
||||
"A_upsidedown.obj",
|
||||
"extruder_idler.obj"
|
||||
};
|
||||
|
||||
} // namespace
|
||||
@ -411,7 +412,7 @@ TEST(SLASupportGeneration, FloorSupportGeometryIsValid) {
|
||||
for (auto &fname: SUPPORT_TEST_MODELS) test_supports(fname, supportcfg);
|
||||
}
|
||||
|
||||
TEST(SLASupportGeneration, SupportsDoNotPierceModel) {
|
||||
TEST(SLASupportGeneration, ElevatedSupportsDoNotPierceModel) {
|
||||
|
||||
sla::SupportConfig supportcfg;
|
||||
|
||||
@ -419,6 +420,15 @@ TEST(SLASupportGeneration, SupportsDoNotPierceModel) {
|
||||
test_support_model_collision(fname, supportcfg);
|
||||
}
|
||||
|
||||
TEST(SLASupportGeneration, FloorSupportsDoNotPierceModel) {
|
||||
|
||||
sla::SupportConfig supportcfg;
|
||||
supportcfg.object_elevation_mm = 0;
|
||||
|
||||
for (auto fname : SUPPORT_TEST_MODELS)
|
||||
test_support_model_collision(fname, supportcfg);
|
||||
}
|
||||
|
||||
TEST(SLARasterOutput, DefaultRasterShouldBeEmpty) {
|
||||
sla::Raster raster;
|
||||
ASSERT_TRUE(raster.empty());
|
||||
|
Loading…
Reference in New Issue
Block a user