Plane Curves with AutoCAD

Gielis Curve

Polar form of the superformula that generalizes the Lamé superellipse to arbitrary rotational symmetries.

Modified Gielis polar equation:
\[ r = \bigl(|\cos(d\theta)|^{a} + |\sin(d\theta)|^{b}\bigr)^{c} \]

History and Applications

The Gielis curve, also known as the superformula, was introduced by Belgian botanist Johan Gielis. The origin of Johan Gielis’ “superformula” is firmly tied to plant morphology. He began with the observation that Lamé’s superellipses could model square-like botanical cross-sections such as the square bamboo, but were limited to fourfold symmetry. To capture the broader symmetries found in leaves, flowers, seeds, and other organs, he recast the idea in polar form, introduced a symmetry parameter to extend beyond fourfold cases, and published the result as an invited Special Paper in the American Journal of Botany in 2003.1 Gielis developed the equation as a generalization of the superellipse (Lamé curves from 1818 and Piet Hein’s supercircles) by converting it to polar coordinates and adding powers to unify a wide range of natural and abstract shapes under a single compact form.2

Real-life applications exist in the natural sciences and engineering. In biology, the curve accurately models plant structures including petioles (e.g., Nuphar luteum), stems (e.g., Scrophularia nodosa and Equisetum), raspberries, leaves, seeds, diatoms, and starfish cross-sections. It has been validated on more than 50,000 biological specimens and used to compute leaf areas across varied shapes, with direct implications for forest management and plant growth studies.3 Gielis framed the equation as a compact description of plant forms, but subsequent work has shown good fits to diatoms, pollen grains, echinoderms such as starfish, and a variety of leaves and floral organs, often with a single parameter set per specimen. He later published a book-length treatment outlining this lineage entitled The Geometrical Beauty of Plants,4 positioning “Gielis curves” as a unifying language for shapes across botanical scales. In electromagnetic engineering, “supershape” or “Gielis” antennas tune bandwidth and radiation patterns, with commercial implementations reporting performance advantages over conventional patch designs. In engineering, it enables compact parametric descriptions for computer-aided geometric design (CAGD), CAD/CAM file optimization, and shape synthesis in manufacturing and computer graphics.5

These uses underscore the practical value of a compact parametric family that spans rounded polygons, star-like forms, and smooth transitions among them.

References

  1. https://bsapubs.onlinelibrary.wiley.com/doi/10.3732/ajb.90.3.333 (original 2003 paper by Gielis)
  2. https://www.2dcurves.com/power/powergc.html (Gielis curve definition, polar form, and exact plant examples matching presets)
  3. https://researchoutreach.org/articles/superellipses-superformula-impact-gielis-transformations/ (biological validation on 50,000+ specimens)
  4. https://content.e-bookshelf.de/media/reading/L-5007778-26f3eba324.pdf (Gielis’ paper, The Geometrical Beauty of Plants)
  5. https://mathworld.wolfram.com/Superellipse.html (Gielis 2003 generalization and superformula equation)

AutoLISP Code

(defun C:GIELIS (/ basept xaxisangle cd sa sb sm om os divcount cosangle sinangle x0 y0 plineents segcount baseinfo paramstep divpt xspan
                   restartflag id iq dcl opt kw mode dpr dct dpt span eq_display xc yc skm a1 a2 x1 y1 x2 y2 fa fb fc fd rval)
  (setq id "Gielis Curve"
        iq "r=(|cos(d·θ)|ᵃ + |sin(d·θ)|ᵇ)^ᶜ"
        dcl "GIELIS"
        opt '("Water Lily" "Figwort" "Horsetail" "Raspberry" "New Values")
        kw 0
        mode 'polar
        dpr "# of divisions around circle"
        dct 360
        dpt nil
        span 360
        kw (ca id iq dcl opt kw mode dpr dct dpt span))
  (cond
    ((eq kw 0)
       (setq fa 10.0
             fb 10.0
             fc (/ -2.0 9.0)
             fd 0.75))
    ((eq kw 1)
       (setq fa 15.0
             fb 15.0
             fc (/ -1.0 12.0)
             fd 1.0))
    ((eq kw 2)
       (setq fa 4.0
             fb 4.0
             fc -0.25
             fd 1.25))
    ((eq kw 3)
       (setq fa 6.0
             fb 6.0
             fc -0.1
             fd 1.75))
    ((eq kw 4)
       (setq fa (get_real 0 "a (stem horizontal radius): " 6.0)
             fb (get_real 0 "b (stem vertical radius): " 6.0)
             fc (get_real 2 "c (lobe expansion): " -0.125)
             fd (get_real 2 "d (lobe multiplier): " 1.5))))
  (setq eq_display (strcat "\na= " (rtos fa 2 4) ", b= " (rtos fb 2 4) ", c= " (rtos fc 2 4) ", d= " (rtos fd 2 4))
        rval '(* (alt_expt (+ (alt_expt (abs (cos (* fd (eval a2)))) fa nil) (alt_expt (abs (sin (* fd (eval a2)))) fb nil)) fc nil))
        xc '(* (eval rval) (cos (eval a2)))
        yc '(* (eval rval) (sin (eval a2)))
        skm '(T T T)
        a1 0
        a2 a1
        x1 (eval xc)
        y1 (eval yc)
        a2 '(+ a1 paramstep)
        x2 '(eval xc)
        y2 '(eval yc))
  (cc))
(C:GIELIS)