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

Unroller splits up curves?

$
0
0

I’m trying to use the Unroller class to unroll a few curves and it seems like the unroller splits up 1 of the curves in 2 pieces after unrolling. Joining them afterwards works fine so they are within tolerance of each other. Is there something I’m overseeing or does this just happen sometimes?


The code I’m using to go from the black to the green line:
Unroller unroll = new Unroller(brepToUseForEnrolling);
unroll.AddFollowingGeometry(curvesToUnroll);
unroll.AbsoluteTolerance = doc.ModelAbsoluteTolerance;
unroll.PerformUnroll(out Curve[] unrolledcurves, out Point3d[] unrolledpoints, out TextDot[] unrolleddots);

I tried both with setting the AbsoluteTolerance and without setting that to the modelabsolutetolerance.

And if this is just the way the unroller sometimes work: if I try to join the list of curves, will it mess up the order of the list?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles