Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 120

Summary: [TV52013073] I have a problem with a 2D filled Contour plots. Just placing a ch...
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david
Priority: High    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Random Contour series filled correctly

Description narcís calvet 2013-11-20 09:58:46 EST
I have a problem with a 2D filled Contour plots.

Just placing a chart with a 2D contour series and using the code below:

procedure TForm1.FormCreate(Sender: TObject);
var i, j: Integer;
begin
 Chart1.View3D:=false;

 Series1.IrregularGrid:=true;
 Series1.Brush.Style:=bsSolid;

 for i:=0 to 9 do
 for j:=0 to 24 do
 Series1.AddXYZ(i, i*j-random(Round(0.5*i*j)),j);
end;

This gives contours which are not filled correctly (e.g. filled area outside contour lines and areas with white triangles). If I just use AddXYZ (i,i*j,j); the contour is drawn perfectly.
My guess is that internal IsoSurface series used for filling the contour levels doesn't take into account intermediate level points in a cell, it just uses cell intersections with levels.
Same happens with .NET version: TF02014290. [created:2008-05-27T13:59:34.000+01:00 reported by:narcis@steema.com reported in version:8.01 (TeeChart VCL)]
Comment 1 david berneda 2013-12-19 10:13:50 EST
Created attachment 61 [details]
Random Contour series filled correctly
Comment 2 david berneda 2013-12-19 10:14:21 EST
Fixed. 
Contour filling now resolves polygons using the same coordinates as contour level lines segments.