mrdoob/three.js — Issue #1106: Mesh for 3D Superformula 
Author: ahoi
Created: 2012-01-14 14:18:54+00:00
State: open

I programmed the superformula for three.js with the help of the code snip from http://stackoverflow.com/questions/4817219/how-can-i-draw-a-supershape3d-as-a-mesh

Currently I can render the shapes with a THREE.ParticleSystem and THREE.Line but can't manage to get a THREE.Mesh.
Maybe I got something wrong with the faces. Here is the code:

var N_X = Math.round(2*Math.PI/me.step);
var N_Y = Math.round(Math.PI/me.step);
var v = THREE.Vector3();
var verticess = new Array();
geometry = new THREE.Geometry();

for(var x = 0; x < N_X; x++){var i = -Math.PI + x*me.step;
for(var y=0;y