Problem with some points triSurface

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
bairog
Newbie
Newbie
Posts: 72
Joined: Fri Jul 07, 2006 12:00 am
Location: Moscow, Russia
Contact:

Problem with some points triSurface

Post by bairog » Thu Jul 13, 2006 1:07 pm

I have a chart and 3 triSurface series. After adding points to these series some part of them is not filled, so that series is not fully drawn(in my example these points are the first points in each serie).
Image
That's why I need to add them again(after that action series are drawn properly). Is this a feature of a bug? If first, could you tell me rules that I take into account while drawing triSurface series.
Thank you.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 13, 2006 2:40 pm

Hi bairog,

You have to be careful with the structure of all series styles derived from Custom3D (Trisurface included). 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;
Regarding you issue, could you please send us a simple example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jul 31, 2006 11:13 am

Hi bairog,

Thank you very much for the example. We could reproduce the problem here and added it (TF02011649) to our defect list to be fixed for future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply