Disassembly.spaceSeparatedParts() will space parts out so they don't touch each other in the disassembly view. The implementation is really slow! Try AlPackino.xmpuzzle from the BurrTools example files for example. The separation code is run inside SolutionDisplay, so it happens every time the puzzle is loaded (the non-separated version is stored, and only separated for display).
I'm pretty sure the algorithm's complexity can be improved. It's a pretty naive implementation at the moment.
Disassembly.spaceSeparatedParts()
will space parts out so they don't touch each other in the disassembly view. The implementation is really slow! TryAlPackino.xmpuzzle
from the BurrTools example files for example. The separation code is run insideSolutionDisplay
, so it happens every time the puzzle is loaded (the non-separated version is stored, and only separated for display).I'm pretty sure the algorithm's complexity can be improved. It's a pretty naive implementation at the moment.