Jasper van de Gronde wrote:
This is tricky, as we do not only need to take endpoints into account, but also corners of paths. I am a little surprised by your report that apparently calculating the bounding box takes an amount of time that depends on the stroke width.
-yes, I forgot about that, one would need to distinguish between smooth joints and cusps.
- and yes, the time depends on stroke width. I open the Fill and Stroke Editor and select the complex shape. I force the bbox to refresh itself by editing the stroke width without actually moving the object. When I change from stroke width 10 to 0.5 then the bbox recalculates itself (twice) and each calc takes 8 seconds. When I change from 0.5 to 10, then each recalculation takes about 1 second.