Hi!
I am looking for a way to split curves were it as a sharp curvature (as indicated in the pic using blue lines)
can someone help me out on this?
split curve based on curvature.gh (107.4 KB)
thanks in advance
Hi!
I am looking for a way to split curves were it as a sharp curvature (as indicated in the pic using blue lines)
can someone help me out on this?
split curve based on curvature.gh (107.4 KB)
thanks in advance
There is also a Discontinuity component that allows for tangency/curvature discontinuity
(and then Shatter)
Sometimes I have 3D curves that I want to split but at a specific discontinuity. Lets say at an angle different then the 160-200 degree range. So when tangeancy between 2 lines varie for an angle greater then X, mark a discontinuity.
Anyone as a clever quick way to do it?
I know Kangaroo can do it with polylines at 90 degree angle, but i want to do it with more control.
EDIT
I answer myself quicker then I thought. But if any component exist let me know!
In a mean time this does the job.
SplitCurveAtSpecicAngle_CC1.gh (159.9 KB)
CC
when you write “Lines” you mean Curves in general? or real Lines as straight segments?
in particular, you mean the angle between different Curve entities, or angle along the very same Curve?
there is a RhinoCommon method that gives you the points of local maximum Curvature.
(Curve.MaxCurvaturePoints method)
for your example you get 25 Points.
(I think there is a way to get the curveparameters from that method - but I do not know how)
you could use these Points to get the curveparameters and use these to shatter the curve.
or filter those below a certain curvature…
CutCurveAt_CurvatureMaxima.gh (21.9 KB)
when you want to cut at certain angles you could get all angles first - discontinuity, and than evaluate the curves at these parameters; that gives you the angle so you can fiter those above or below something given before shattering.