mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-18 22:31:13 -06:00
Cut: Fix crashing in programming cut. Also fixes the cut z offset.
This commit is contained in:
parent
018b2744db
commit
28e2995a01
4 changed files with 7 additions and 24 deletions
|
@ -653,11 +653,5 @@ const ModelObjectPtrs& Cut::perform_with_groove(const Groove& groove, const Tran
|
|||
return m_model.objects;
|
||||
}
|
||||
|
||||
ModelObjectPtrs Cut::cut_horizontal(const ModelObject *object, size_t instance_idx, double z, ModelObjectCutAttributes attributes)
|
||||
{
|
||||
Cut cut(object, instance_idx, Geometry::translation_transform(z * Vec3d::UnitZ()), attributes);
|
||||
return cut.perform_with_plane();
|
||||
}
|
||||
|
||||
} // namespace Slic3r
|
||||
|
||||
|
|
|
@ -63,8 +63,6 @@ public:
|
|||
const ModelObjectPtrs& perform_by_contour(std::vector<Part> parts, int dowels_count);
|
||||
const ModelObjectPtrs& perform_with_groove(const Groove& groove, const Transform3d& rotation_m, bool keep_as_parts = false);
|
||||
|
||||
static ModelObjectPtrs cut_horizontal(const ModelObject *object, size_t instance_idx, double z, ModelObjectCutAttributes attributes);
|
||||
|
||||
}; // namespace Cut
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue