mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
New feature: add handy models
3DBenchy: https://www.3dbenchy.com/ Voron Cube https://vorondesign.com/ Autodesk FDM Test: https://github.com/kickstarter/kickstarter-autodesk-3d
This commit is contained in:
parent
1826dee1cb
commit
5c91516420
4 changed files with 21 additions and 0 deletions
BIN
resources/handy_models/3DBenchy.stl
Normal file
BIN
resources/handy_models/3DBenchy.stl
Normal file
Binary file not shown.
BIN
resources/handy_models/Voron_Design_Cube_v7.stl
Normal file
BIN
resources/handy_models/Voron_Design_Cube_v7.stl
Normal file
Binary file not shown.
BIN
resources/handy_models/ksr_fdmtest_v4.stl
Normal file
BIN
resources/handy_models/ksr_fdmtest_v4.stl
Normal file
Binary file not shown.
|
@ -486,6 +486,27 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty
|
||||||
[type, item](wxCommandEvent&) { obj_list()->load_generic_subobject(item, type); }, "", menu);
|
[type, item](wxCommandEvent&) { obj_list()->load_generic_subobject(item, type); }, "", menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto &item : {L("3DBenchy"), L("Autodesk FDM Test"), L("Voron Cube")}) {
|
||||||
|
append_menu_item(
|
||||||
|
sub_menu, wxID_ANY, _(item), "",
|
||||||
|
[type, item](wxCommandEvent &) {
|
||||||
|
std::vector<boost::filesystem::path> input_files;
|
||||||
|
std::string file_name = item;
|
||||||
|
if (file_name == "3DBenchy")
|
||||||
|
file_name = "3DBenchy.stl";
|
||||||
|
else if (file_name == "Autodesk FDM Test")
|
||||||
|
file_name = "ksr_fdmtest_v4.stl";
|
||||||
|
else if (file_name == "Voron Cube")
|
||||||
|
file_name = "Voron_Design_Cube_v7.stl";
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
input_files.push_back(
|
||||||
|
(boost::filesystem::path(Slic3r::resources_dir()) / "handy_models" / file_name));
|
||||||
|
plater()->load_files(input_files, LoadStrategy::LoadModel);
|
||||||
|
},
|
||||||
|
"", menu);
|
||||||
|
}
|
||||||
|
|
||||||
return sub_menu;
|
return sub_menu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue