Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Smooth linestrings

Theres any algoritm to get smooth linestring coordinates (red line) from original linestring coordinates (green line)???

See image, please:

This doesn't seem to be Python-specific. Are you aware of, generally, an algorithm that you could try implementing in Python?
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Those look to be Bezier curves. A web search on "python bezier curves" comes up with a few items on Stack Overflow showing how to implement them with NumPy and SciPy.
Craig "Ichabod" O'Brien -
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Yes, there are algorithms to smooth Bezier curves:
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs:

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020