bb.donnay-software.com

Donnay Software Web Forums
It is currently Wed Aug 12, 2020 3:09 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Bezier-Kurve
PostPosted: Sat May 30, 2020 9:45 am 
Offline
User avatar

Joined: Sat Feb 04, 2012 2:23 am
Posts: 1349
Location: Russia, Southern federal district, city of Krasnodar
To smooth out the empirical data, I tried using the Bezier curve. The link to the program is given below. But I don't like breaking the smoothness of the Bezier curve at the 4th point. As far as I understand, there should not be such a sharp break in the Bezier curve. Can someone tell me where and what I'm wrong about? The program's executable module, prg file, and Excel file with the source data can be downloaded from my site at the link: http://lc.kubagro.ru/Bezier.zip


Attachments:
Bezier.zip [228.79 KiB]
Downloaded 81 times

_________________
http://lc.kubagro.ru/
https://www.researchgate.net/profile/Eugene_Lutsenko
http://ej.kubagro.ru/
http://ej.kubagro.ru/a/viewaut.asp?id=11
Top
 Profile  
 
 Post subject: Re: Bezier-Kurve
PostPosted: Sun May 31, 2020 12:47 pm 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1189
hi,

Offtopic : please rename Sheetname to English
Attachment:
Rename_Sheet1.JPG
Rename_Sheet1.JPG [ 10.94 KiB | Viewed 1281 times ]

add this into your Code
Code:
oExcel:Application:Worksheets(1):name := "Sheet1"

else 3-PP Software might have Problem to open Sheet

---

for your Problem with Math Question to display Graphic xBase is wrong Language.
you can try to find Math Solution for Excel but most it have to do with Business

have a Look at MathLab https://www.mathworks.com/products/matlab.html
this Software is for Scientists ... but it is "C"

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
 Post subject: Re: Bezier-Kurve
PostPosted: Sun May 31, 2020 9:12 pm 
Offline
User avatar

Joined: Sat Feb 04, 2012 2:23 am
Posts: 1349
Location: Russia, Southern federal district, city of Krasnodar
Points where the Bezier curve is incorrect are circled in red


Attachments:
Bezier_err.jpg
Bezier_err.jpg [ 258.48 KiB | Viewed 1267 times ]

_________________
http://lc.kubagro.ru/
https://www.researchgate.net/profile/Eugene_Lutsenko
http://ej.kubagro.ru/
http://ej.kubagro.ru/a/viewaut.asp?id=11
Top
 Profile  
 
 Post subject: Re: Bezier-Kurve
PostPosted: Mon Jun 01, 2020 1:54 pm 
Offline
User avatar

Joined: Wed Feb 24, 2010 3:44 pm
Posts: 1189
Eugene Lutsenko wrote:
Points where the Bezier curve is incorrect are circled in red

i have look forBezier curve Sample and found this Animation
https://www.jasondavies.com/animated-bezier/

---

as i can say : you use wrong Scale
i guess you need to calculate more Points between to get it smooth.

i found some Excel Sample like this
Attachment:
Excel_Bezier.JPG
Excel_Bezier.JPG [ 92 KiB | Viewed 1249 times ]

it use Excel to calculate 10 Point between and to paint Chart
read more here https://blog.splitwise.com/2012/01/31/mystery-solved-the-secret-of-excel-curved-line-interpolation/

---

there are 3-PP Solution to Read/Write Excel XLSx without Excel.
you can include Formula and Image. the Problem are calculation and Macro which are use in this Sample.

to do it with Xbase++ seems me wrong Way ... it take too much Time.
for Math Problem with many Data it is wrong Software

_________________
greetings by OHR
Jimmy


Top
 Profile  
 
 Post subject: Re: Bezier-Kurve
PostPosted: Mon Jun 01, 2020 10:31 pm 
Offline
User avatar

Joined: Sat Feb 04, 2012 2:23 am
Posts: 1349
Location: Russia, Southern federal district, city of Krasnodar
When there are a lot of points, this also works incorrectly, but the errors are not visible to the eye

_________________
http://lc.kubagro.ru/
https://www.researchgate.net/profile/Eugene_Lutsenko
http://ej.kubagro.ru/
http://ej.kubagro.ru/a/viewaut.asp?id=11


Top
 Profile  
 
 Post subject: Re: Bezier-Kurve
PostPosted: Wed Jun 17, 2020 7:22 am 
Offline
User avatar

Joined: Sat Feb 04, 2012 2:23 am
Posts: 1349
Location: Russia, Southern federal district, city of Krasnodar
I have completely resolved this issue


Attachments:
Bezier.zip [311.33 KiB]
Downloaded 74 times

_________________
http://lc.kubagro.ru/
https://www.researchgate.net/profile/Eugene_Lutsenko
http://ej.kubagro.ru/
http://ej.kubagro.ru/a/viewaut.asp?id=11
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group