Menu

Where to read equations used in the component TGLsuperellipsoid? (check demo)

Sergio
2024-08-04
2024-08-08
  • Sergio

    Sergio - 2024-08-04

    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 ?

     
  • Sergio

    Sergio - 2024-08-04

    the attached code

     
    • Pavel Vassiliev

      Pavel Vassiliev - 2024-08-08

      In GLScene by default it has sphere equation and then you can change parameters in properties

       
  • Pavel Vassiliev

    Pavel Vassiliev - 2024-08-07

    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

     
  • Sergio

    Sergio - 2024-08-07

    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"

     
    • Pavel Vassiliev

      Pavel Vassiliev - 2024-08-08

      There is Maple Plot3D, but also actually 2.5D for f(x,y) not f(x,y,z) functions.
      f(x,y)

       
  • Sergio

    Sergio - 2024-08-07

    I can not send all in just one message

     
    • Pavel Vassiliev

      Pavel Vassiliev - 2024-08-08

      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
  • Sergio

    Sergio - 2024-08-07

    and this "boat" one about the so called manetohydrodynamics

     
  • Sergio

    Sergio - 2024-08-08

    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

     
  • Sergio

    Sergio - 2024-08-08

    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 )

     

Log in to post a comment.