I have a curve (say JTS edge):
How to find all curve direction change points that surpasses given angle using JTS (Java) or NTS (C#):
I did some research and made some tests on JTS, and the best way I found is:
union
x(firstElemOfSubArray, lastElemOfSubArray)
by computing the base-changing matrix, and I then recompute the sub-array in a new coordinate systemorg.apache.commons.math3.analysis.interpolation.SplineInterpolator
to interpolate the function of the course, and then I get the derivative and search the extrema (don't take elements with an ordinate that is too low). With its absysse you can find which point is an inflexion pointIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With