original example by Karsten Schmidt
Toxiclibs ported to js by Kyle Phillips

Usage:

- w: toggle wireframe on/off Currently very slow
- n: toggle normal vector display on/off

SuperEllipsoidMeshBuilder demonstrates how to use the SurfaceMeshBuilder class in conjunction with a SuperEllipsoid function to dynamically create a variety of useful geometric forms. The super ellipsoid is described in detail on Paul Bourke's website. In this demo 2 out-of-sync sine waves are used to animate the ellipsoid parameters. Included is also a re-usable function for displaying a generic TriangleMesh instance, incl. the display of surface normals useful for debug purposes.