Sometimes i have Nurbscurves making problems with these geometric properties listed in the object “What” dialog text:
Curve is not smooth. If you explode it, it will become two or more curves.
Is there a way to detect this geometrically using python scripting or RhinoCommon ? In Rhino 6 i could use RhinoObject.Description, but that is not possible in Rhino 5.
thank you for your reply. I will try to implement it. Does the discontinuity only happen between start and end point of closed Nurbscurves or do i have to check all segments ?
Hi @clement,
I’m not sure if I understand your question - but according to the documentation this should test your entire curve object for the first occuring G1 (ie. tangency) discontinuity, you don’t have to manually iterate through segments.
The end points/knots are excluded by default (otherwise all open curves would be considered discontinuous), and specifying Locus Continuity simply says to check them as well.
Hi @dale, may I know the actual geometric definition of “Gsmooth_continuous”?
The documentation says ‘aesthetic discontinuity’ but it’s not clear what that means - torsional smoothness/G3 or higher? Or some kind of heuristic?
I’ve been using G1 and G2 without issues to evaluate kinks in my use scenario, just curious where that would break down.
Gsmooth_continuous means nothing mathematically. Basically, it means at least G2 and as smooth as reasonably possible for the object being queried. Hence the aesthetic discontinuity comment.