naterich2 / surfaceplotter

Automatically exported from code.google.com/p/surfaceplotter
0 stars 0 forks source link

2 Plots with different x,y values results in visual artefacts #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Modify DefaultSurfaceModel class in doInBackground so that
float v2 = mapper.f2(my_x, my_y); // where my_x, my_y are on unit circle, 
whereas f1 uses usual x,y values (
float my_x = (float)(Math.cos(((double)k)*2.0*Math.PI/((double)(total))));
float my_y = (float)(Math.sin(((double)k)*2.0*Math.PI/((double)(total))));
)

2. my_x, my_y are than used in
 surfaceVertex[1][k] = new SurfaceVertex((expjx - xMin) * xfactor - 10, (expjy - yMin) * yfactor - 10, v2);

3. There are arfifacts when both functions are shown (Fig1.png).

4. I found out that line 1519 in JSurface (plotArea method) does this. Iam not 
able to decipher the source code further, but I commented the line along with 
the branch if (plottable(values2)) and it worked fine.

What is the expected output? What do you see instead?
There are artifact as in Fig1.png

What version of the product are you using? On what operating system?
I thing I use HEAD SVN version, but Iam not able to check it right now.

Please provide any additional information below.
Thanks for the great plotter. Your work is greatly appreciated from my side.

Original issue reported on code.google.com by zdenek.p...@gmail.com on 13 Sep 2011 at 4:04

Attachments:

GoogleCodeExporter commented 9 years ago
I really tried to understand how to reproduce the bug, but I just can't ! 

Can you provide either a patch for DefaultSurfaceModel that reproduces the bug 
? Or maybe explain it again for my little brain ;-)

Original comment by e...@ericaro.net on 9 Oct 2011 at 3:55

GoogleCodeExporter commented 9 years ago
Cannot reproduce

Original comment by e...@ericaro.net on 10 Feb 2012 at 10:02