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 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 point© 2022 - 2024 — McMap. All rights reserved.