B4X FEED [B4X] Fitting a smooth curved line to a sequence of points

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: [B4X] Fitting a smooth curved line to a sequence of points است. این موضوع تا کنون 97 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع [B4X] Fitting a smooth curved line to a sequence of points
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
97
پسندها
0
آخرین ارسال توسط PracticalSoft
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...



 

عقب
بالا