- Jun 6, 2020
- 11,559
- 4,422
This simple technique was mentioned in this thread
It was not an appropriate solution for that thread, so I am presenting it here with a couple of examples where it is very effective.
The first is where you want a line drawing based on some image. Sample points on the outline of the drawing and then use the algorithm to fit the line.
The second example comes from my Virtual Trainset project. It was introduced in this thread.
The tracks are sampled from a railway map. The scene shows 4 trains (red, blue, 2 yellow) following the smoothed track.
The image is a moment of time in the animation.
Algorithm:
Imagine three points. They form a corner. Cut the tip off the corner.
You now have four points, and a smoother...
برای دیدن لینک ها باید ثبت نام کنید
It was not an appropriate solution for that thread, so I am presenting it here with a couple of examples where it is very effective.
The first is where you want a line drawing based on some image. Sample points on the outline of the drawing and then use the algorithm to fit the line.
برای دیدن تصاویر باید ثبت نام کنید
The second example comes from my Virtual Trainset project. It was introduced in this thread.
برای دیدن لینک ها باید ثبت نام کنید
The tracks are sampled from a railway map. The scene shows 4 trains (red, blue, 2 yellow) following the smoothed track.
The image is a moment of time in the animation.
برای دیدن تصاویر باید ثبت نام کنید
Algorithm:
Imagine three points. They form a corner. Cut the tip off the corner.
You now have four points, and a smoother...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید