mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 15:44:12 -06:00
Merge remote-tracking branch 'origin/convex_hull' into lm_lay_flat_round_merged_facets
This commit is contained in:
commit
3f72ca2a15
17 changed files with 266 additions and 183 deletions
|
@ -2206,7 +2206,7 @@ void GLCanvas3D::update_gizmos_data()
|
|||
/////////////////////////////////////////////////////////////////////////
|
||||
// Following block provides convex hull data to the Flatten gizmo
|
||||
// It is temporary, it should be optimized and moved elsewhere later
|
||||
TriangleMesh ch = model_object->mesh().convex_hull3d();
|
||||
TriangleMesh ch = model_object->mesh().convex_hull_3d();
|
||||
stl_facet* facet_ptr = ch.stl.facet_start;
|
||||
std::vector<Pointf3s> points;
|
||||
const unsigned int k = 20;
|
||||
|
@ -3342,7 +3342,7 @@ BoundingBoxf3 GLCanvas3D::_selected_volumes_bounding_box() const
|
|||
{
|
||||
for (const GLVolume* volume : selected_volumes)
|
||||
{
|
||||
bb.merge(volume->transformed_bounding_box());
|
||||
bb.merge(volume->transformed_convex_hull_bounding_box());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue