Page 1 of 1

Evaluating Teechart.Net : surface plot or trisurface plot ?

Posted: Tue Oct 18, 2005 3:33 pm
by 5886822
Hello,

I want to make a surface plot or a trisurface plot, but didn't succeed.
The data is imported from a textfile. Sometimes I get an error 'similar points found', but if you look into the file, there are no similar points.

Can anybody try this out ?

Thanks.

Find the file and error at : http://download.hemmis.be/download/teechartfiles.zip

Posted: Wed Oct 19, 2005 2:27 pm
by narcis
Hi Da Vinci,

I haven't been able to reproduce the error you reported. Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

Also notice that the most important thing you have to care about when using surface series and derived styles is its structure. Those series work like a matrix where the cells are defined by X (rows) and Z (columns) values and each cell value is determined by Y values. You have to design your series as being able to be populate by a for nested loop as:

Code: Select all

         for (int x=0; x<10; ++x) 
            for (int z=0; z<10; ++z) 
               if (x % 2 == 0) 
                  surface1.Add(x,x*z,z);
If X and Z values are not equidistant then you should use:

Code: Select all

         surface1.IrregularGrid=true;