Comment 6 for bug 340123

Revision history for this message
Robert DeMaria (robert-semnatstudios) wrote : Re: [Bug 340123] Re: Effects - Modify Path - Flatten Beziers fails on complicated paths with small flatness parameter

I can confirm that this fix works. I was not able to generate a path that
the Flatten Beziers tool failed on.

On Wed, Mar 2, 2011 at 4:27 AM, Alvin Penner <email address hidden> wrote:

> ** Changed in: inkscape
> Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/340123
>
> Title:
> Effects - Modify Path - Flatten Beziers fails on complicated paths
> with small flatness parameter
>
> Status in Inkscape: A Vector Drawing Tool:
> Incomplete
>
> Bug description:
> Reproduction Steps:
> 1)Generate a long, highly detailed curve with the freehand curve tool (a
> scribble is the best way to reproduce the bug)
> 2)Select the curve
> 3)Select the "Flatten Beziers" effect from the "Effects - Modify Path"
> menu
> 4)Use a small flatness value (around 2 consistently produces the bug)
> 5)Observe the failure of the effect
>
> A sample .svg file containing a curve that consistently produces a
> failure with a flatness parameter of "2" is included.
>
> The python traceback ultimately reports:
> " File "C:\Program Files\Inkscape\share\extensions\ffgeom.py", line 66,
> in delta_x
>
> return self[1]['x'] - self[0]['x']
>
> RuntimeError: maximum recursion depth exceeded"
>
> A version of this effect that works on curves of arbitrary length and
> detail would be very valuable for those wishing to use Inkscape as a
> level design tool for games. It greatly simplifies the process of
> generating a triangle mesh from a closed path. However, in its
> current form artists have a difficult time predicting how long or
> detailed the curves they generate can be before the path will produce
> a failure.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/inkscape/+bug/340123/+subscribe
>