Skip to content

This is a python script to draw superquadrics. It uses Traits to create a GUI that the user can use to interactively change the parameters of the superquadric

Notifications You must be signed in to change notification settings

KD-3/Superquad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Superquadrics in Python
======================
In mathematics, the superquadrics or super-quadrics (also superquadratics) 
are a family of geometric shapes defined by formulas that resemble those of
elipsoids and other quadrics, except that the squaring operations are 
replaced by arbitrary powers. They can be seen as the three-dimensional 
relatives of the Lamé curves ("superellipses") (from Wikipedia)

Requires:
You must have the Traits packages to run this code, as well as VTK . 
These are available as packages in most modern OS's. 
The easiest way to get all these pacakges is to install EPD (
Enthought Python Distribution) which is free for non-commercial
purposes.

To run the script simply issue:
python <filename.py>

from the terminal. If your hardware is old, you might try changing
alpha and beta in line 34 and 35 so that you plot lesser no. of points.

About

This is a python script to draw superquadrics. It uses Traits to create a GUI that the user can use to interactively change the parameters of the superquadric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%