Allow cancel during beam interlocking generation #334

Closed
opened 2026-04-05 16:19:59 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Noisyfox on 3/13/2026

With certain irrational beam interlocking parameters, it will take a few minutes to complete the interlocking generation; even worse: cancellation doesn't work once it started.

This PR fix that by adding cancellation check inside some of the most time consuming loops so it can be stopped ASAP.

Also cherry picked a sanity check from https://github.com/bambulab/BambuStudio/pull/9925 by @mpaperno. Thanks!

The following test project (which was modified from the upper PR by @mpaperno) took me more than 90s to complete with 0.1mm beam width:
Interloack-Test2.orca.3mf.txt

*Originally created by @Noisyfox on 3/13/2026* With certain irrational beam interlocking parameters, it will take a few minutes to complete the interlocking generation; even worse: cancellation doesn't work once it started. This PR fix that by adding cancellation check inside some of the most time consuming loops so it can be stopped ASAP. Also cherry picked a sanity check from https://github.com/bambulab/BambuStudio/pull/9925 by @mpaperno. Thanks! The following test project (which was modified from the upper PR by @mpaperno) took me more than 90s to complete with 0.1mm beam width: [Interloack-Test2.orca.3mf.txt](https://github.com/user-attachments/files/25975637/Interloack-Test2.orca.3mf.txt)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/OrcaSlicer#334