Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8561

Final knot value greater than total length

$
0
0

@karol_wierzbick wrote:

Hi,

I have a PolylineCurve, which one point was moved by the gumbal, and thus the curve was shortened form 6 meters to 2.249 meters. When I try to find discontinuity G1 locus continuous, the final parameter is given on a distance of 6.00012 (original length) while the new length of the curve was not given correctly. Eventually I end up with final knot in different place than total length of the curve. Can you advise if I’m doing something wrong here?

Rhinoceros 6 beta

image

            var discontinuities = new List<double>();
            var t0 = curve.Domain.T0;
            var t1 = curve.Domain.T1;

            discontinuities.Add(0);
            while (curve.GetNextDiscontinuity(Continuity.G1_locus_continuous, t0, t1, out t0))
            {
                discontinuities.Add(t0);
            }

Another issue that I have is, that knot value is often slightly greater than curve length. I am also not sure if this is a bug or expected behaviour.
image

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8561

Trending Articles