Hi friends ..... In the working code attached there is a modification of the demo for the use of the TGLsuperellipsoid component. I added some few details. With this and the original demo it is possible to understand what each parameter do.
I need to do the following. After changing the any or several trackbars and getting a figure, Ineed to write in the yellow panel the parameters of the superellipsoid equation which appears in the screen. This is the classic equation and very possibly what was used in the component code. I I need to be sure that the equations within the TGLsupperellipsoid code are exactly like the one in the screen (or if are multiplied by constants)
SO MY QUESTION IS : where can I read the equations or code which were used to construct the TGLsupperellipsoid component ? The part where I write the equation parameters in in the last lines of the procedure ShowSuperellipsoid
If anyone one want to read about the equations of superquadrics check equation 2.15 of the article attached. Thanks in advance for any help.
By the way is there any book or document explaining the methods and equations used in the great "physics" components ?
Hi Sergio,
Yes, you are on the right track. The superellipsoid must be described by formulas.
The object was originally developed by Eric Hardinger more than 10 years ago, and I built it into the GLScene component. We have a Plot1D/Plot 2D application from him in branche/examples and I suggested making a Plot 3D, but Eric Hardinger said that he is retired, being eighty years old, and he cannot sit and program for long. It would be nice to have a set of programs f(x), f(x,y) and then Plot3D for f(x,y,z) to visualize also superellipsoids by formulas.
Pavel
Hi Pavel ... Thaks for the great info. I went through some older material and found great things including the Plot3D. I updated the code and is working . Now I will understand it beter. It is really great this and other codes by Eric Hardinger . I will go deep in this Plot3D and other demos I saw in the MathApps . Rare things there for engineering. Check attachments . I will write soon. Just by curiosity is Eric an engineer ? .... More ahead I will explain the figure "like a boat"
Oh, no it's examples from Plot2D.exe with
f(xy) functions and Plot3D having f(xyz) not implemented yet, only in plans. Look at explanation pdf in attachment. Plot2D.exe
Great material Pavel, thanks. I will go through it and the Plot3D code. I will write you next week. I see that what I need is here. The "superformula" for quadrics can be used with the righrt parameters to generate many-many forms. This article here is interesting https://github.com/bmlklwx/EMS-superquadric_fitting
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi friends ..... In the working code attached there is a modification of the demo for the use of the TGLsuperellipsoid component. I added some few details. With this and the original demo it is possible to understand what each parameter do.
I need to do the following. After changing the any or several trackbars and getting a figure, Ineed to write in the yellow panel the parameters of the superellipsoid equation which appears in the screen. This is the classic equation and very possibly what was used in the component code. I I need to be sure that the equations within the TGLsupperellipsoid code are exactly like the one in the screen (or if are multiplied by constants)
SO MY QUESTION IS : where can I read the equations or code which were used to construct the TGLsupperellipsoid component ? The part where I write the equation parameters in in the last lines of the procedure ShowSuperellipsoid
If anyone one want to read about the equations of superquadrics check equation 2.15 of the article attached. Thanks in advance for any help.
By the way is there any book or document explaining the methods and equations used in the great "physics" components ?
the attached code
In GLScene by default it has sphere equation and then you can change parameters in properties
Hi Sergio,
Yes, you are on the right track. The superellipsoid must be described by formulas.
The object was originally developed by Eric Hardinger more than 10 years ago, and I built it into the GLScene component. We have a Plot1D/Plot 2D application from him in branche/examples and I suggested making a Plot 3D, but Eric Hardinger said that he is retired, being eighty years old, and he cannot sit and program for long. It would be nice to have a set of programs f(x), f(x,y) and then Plot3D for f(x,y,z) to visualize also superellipsoids by formulas.
Pavel
Hi Pavel ... Thaks for the great info. I went through some older material and found great things including the Plot3D. I updated the code and is working . Now I will understand it beter. It is really great this and other codes by Eric Hardinger . I will go deep in this Plot3D and other demos I saw in the MathApps . Rare things there for engineering. Check attachments . I will write soon. Just by curiosity is Eric an engineer ? .... More ahead I will explain the figure "like a boat"
There is Maple Plot3D, but also actually 2.5D for f(x,y) not f(x,y,z) functions.
f(x,y)
I can not send all in just one message
Oh, no it's examples from Plot2D.exe with
f(xy) functions and Plot3D having f(xyz) not implemented yet, only in plans. Look at explanation pdf in attachment.
Plot2D.exe
Last edit: Pavel Vassiliev 2024-08-08
and this "boat" one about the so called manetohydrodynamics
Great material Pavel, thanks. I will go through it and the Plot3D code. I will write you next week. I see that what I need is here. The "superformula" for quadrics can be used with the righrt parameters to generate many-many forms. This article here is interesting https://github.com/bmlklwx/EMS-superquadric_fitting
2D or 3D: If you have a 3D equation like XX+ YY + ZZ=1 if you wish to draw it 3D you can plot based on Z=sqrt (1 - XX - Y*Y )