Fixed a bug, where a bounding box volume was shown at the side bar
instead of volume of the mesh.
This commit is contained in:
parent
cc79b1553d
commit
b2f10ec864
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ void Sidebar::show_info_sizer()
|
||||||
p->object_info->info_materials->SetLabel(wxString::Format("%d", static_cast<int>(model_object->materials_count())));
|
p->object_info->info_materials->SetLabel(wxString::Format("%d", static_cast<int>(model_object->materials_count())));
|
||||||
|
|
||||||
auto& stats = model_object->volumes.front()->mesh.stl.stats;
|
auto& stats = model_object->volumes.front()->mesh.stl.stats;
|
||||||
p->object_info->info_volume->SetLabel(wxString::Format("%.2f", size(0) * size(1) * size(2)));
|
p->object_info->info_volume->SetLabel(wxString::Format("%.2f", stats.volume));
|
||||||
p->object_info->info_facets->SetLabel(wxString::Format(_(L("%d (%d shells)")), static_cast<int>(model_object->facets_count()), stats.number_of_parts));
|
p->object_info->info_facets->SetLabel(wxString::Format(_(L("%d (%d shells)")), static_cast<int>(model_object->facets_count()), stats.number_of_parts));
|
||||||
|
|
||||||
int errors = stats.degenerate_facets + stats.edges_fixed + stats.facets_removed +
|
int errors = stats.degenerate_facets + stats.edges_fixed + stats.facets_removed +
|
||||||
|
|
Loading…
Reference in a new issue