I am manipulating geometry with analog input via Arduino [Potenometer]. This is working with the exception of the geometry is being added on top of old sets when ideally I would like it to be visualized as a manipulation of the surface.
I've placed a photo to describe in more detail...
I am new to processing/arduino so please bare with me.
Here is the code:
import processing.opengl.*;
import igeo.*;
import processing.serial.*;
Serial port;
float var = 0;
int rvar = round(var);
void setup()
{
size(500,500, IG.GL );
port = new Serial(this, "COM3", 9600);
port.bufferUntil('\n');
}
void draw()
{
// 4 points in u direction, 3 points in v direction