Hello Everyone,
I’m looking for a way to find the local extremes of a periodic boundary. When I choose to work with periodic boundary the extremes can be found in several directions (I used RhinoCurveExtremeParameters method). Does anyone have any idea how to find local extremes of a periodic curve without optimization solvers?
P.S I’m not sure if those points are called local extremes.
Best,
Mahan
I guess you’re looking for MaxCurvaturePoints:
private void RunScript(Curve curve, ref object A)
{
A = curve.MaxCurvaturePoints();
}
MaxCurvature.gh (3.3 KB)
2 Likes
Hi Mahdiyar. Is that a custom made function? Because it doesn’t exist in my library.
Best,
Mahan
It’s only available in Rhino 7 WIP.
So then it’s the question how we can have it in Rhino 6? Maybe there is a way if we can understand the mathematical solution.
extreme_curvature_2020May19a.gh (9.5 KB)
from Curve.MaxCurvaturePoints Method:
The maximum curvature points identify where the curvature starts to decrease in both directions from the points.
3 Likes
Thanks Joseph. it works well.
Best,
Mahan