Length along Path seems not valid

Issue #444 resolved
David Arnold created an issue

Using the Length along SplinePath Tool:

The first image shows the bigger picture, the blue dotted line on the bottom are the reference lines, used for measurement. The second enlarged image shows the transition of the points from the blue reference line onto the Spline Path. As it can be clearly seen the path-bound distance between those two points on the Spline Path do not match de reference distance.

Capture2.PNG Capture1.PNG

Comments (6)

  1. David Arnold reporter

    Addendum, trying to increment the segment distance of the second point (the one on the right) by manual increments in the cm range does not move the point. It seems a possibility that this point might be calculated correctly, but for some reason can not be moved beyond the depicted extreme on the right.

  2. Roman Telezhynskyi repo owner

    Cutting produces always two sub-paths.

    #!c++
    
    if (length < GetLength()*0.02)
    {
        length = GetLength()*0.02;
    }
    else if ( length > GetLength()*0.98)
    {
        length = GetLength()*0.98;
    }
    
  3. David Arnold reporter

    Do I read this right, that cutting is limited between the section 2% to 98% of the cuttED path's length?

    El vie., 5 feb. 2016 a las 3:08, Roman Telezhinskyi (<

  4. David Arnold reporter

    I assume this is a technically necessary operation. Would it be very costly to lift that to 0,001 % and 99.999% ?

    El vie., 5 feb. 2016 a las 17:26, David Arnold (dar@devco.co) escribió:

    [image: dismi_] Roman Telezhinskyi commented on issue #444: Length along Path seems not valid https://bitbucket.org/dismine/valentina/issues/444/length-along-path-seems-not-valid

    Cutting produces always two sub-paths.

    if (length < GetLength()0.02){ length = GetLength()0.02;}else if ( length > GetLength()0.98){ length = GetLength()0.98;}

    View this issue https://bitbucket.org/dismine/valentina/issues/444/length-along-path-seems-not-valid or add a comment by replying to this email. Unwatch this issue https://bitbucket.org/api/1.0/repositories/dismine/valentina/issue/444/unwatch/blaggacao/2ef00c2f4859bf09b90d56b934a105c944e40c57/ to stop receiving email updates. [image: Bitbucket] https://bitbucket.org

  5. Roman Telezhynskyi repo owner

    I assume this is a technically necessary operation. Would it be very costly to lift that to 0,001 % and 99.999% ?

    Yes, i think this possible. But better create unit tests and check if all is ok.

  6. Log in to comment