mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 14:13:57 -06:00
FIX: add small disc stl
Change-Id: I5c6c8ca1d4a15fc1462fe47d2e5e37b459f9a9a6
This commit is contained in:
parent
238a377155
commit
f7495612fa
3 changed files with 3 additions and 1 deletions
BIN
resources/model/Disc.stl
Normal file
BIN
resources/model/Disc.stl
Normal file
Binary file not shown.
|
@ -484,7 +484,7 @@ wxMenu* MenuFactory::append_submenu_add_generic(wxMenu* menu, ModelVolumeType ty
|
|||
sub_menu->AppendSeparator();
|
||||
}
|
||||
|
||||
for (auto &item : {L("Cube"), L("Cylinder"), L("Sphere"), L("Cone")})
|
||||
for (auto &item : {L("Cube"), L("Cylinder"), L("Sphere"), L("Cone"), L("Disc")})
|
||||
{
|
||||
append_menu_item(sub_menu, wxID_ANY, _(item), "",
|
||||
[type, item](wxCommandEvent&) { obj_list()->load_generic_subobject(item, type); }, "", menu);
|
||||
|
|
|
@ -2053,6 +2053,8 @@ static TriangleMesh create_mesh(const std::string& type_name, const BoundingBoxf
|
|||
mesh = TriangleMesh(its_make_cube(bb.size().x() * 1.5, bb.size().y() * 1.5, bb.size().z() * 0.5));
|
||||
else if (type_name == "Cone")
|
||||
mesh = TriangleMesh(its_make_cone(0.5 * side, side));
|
||||
else if (type_name == "Disc")
|
||||
mesh.ReadSTLFile((Slic3r::resources_dir() + "/model/Disc.stl").c_str(), true, nullptr);
|
||||
else if (type_name == "Bambu Cube")
|
||||
mesh.ReadSTLFile((Slic3r::resources_dir() + "/model/Bambu_Cube.stl").c_str(), true, nullptr);
|
||||
else if (type_name == "Bambu Cube V2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue