1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-17 09:04:27 +00:00

Ported PrintObject::bounding_box() to XS

This commit is contained in:
Alessandro Ranellucci
2014-11-30 21:58:41 +01:00
parent 1fda9e3d50
commit c7f5753a28
4 changed files with 17 additions and 10 deletions
+10
View File
@@ -111,6 +111,16 @@ PrintObject::reload_model_instances()
return this->set_copies(copies);
}
void
PrintObject::bounding_box(BoundingBox* bb) const
{
// since the object is aligned to origin, bounding box coincides with size
Points pp;
pp.push_back(Point(0,0));
pp.push_back(this->size);
*bb = BoundingBox(pp);
}
void
PrintObject::add_region_volume(int region_id, int volume_id)
{