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 148

Summary: [TV52013000] In the same circumstances as TV52012998, enabling the "smooth" option...
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: IN_PROGRESS ---    
Severity: major CC: david
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-20 10:00:18 EST
In the same circumstances as TV52012998, enabling the "smooth" option for the Contour series with or without interpolation results in confusing circular contours.
Find attached .tee file.
  [created:2008-04-23T11:01:04.000+01:00 reported by:narcis@steema.com reported in version:8.01 (TeeChart VCL)]
Comment 1 david berneda 2013-12-03 08:04:38 EST
The "Circular" contour are technically correct.

When all four corners of a given cell are equal (have the same value), the contour level line is exactly passing through the four corners, so it gets constructed as a flat rectangle (or square).

Then, when applying "smoothing" over the rectangle, the BSpline algorithm does the smoothing on the four corners, and effectively ends up as a circle.

Solutions that we can apply to our Contours (and smooth contours) can be:

1) Do not create contour segments that are flat (ie: do not paint any level when a cell is flat), so smoothing will also follow this (ie: no smoothed segments).

or

2) Create the rectangle levels for flat cells, but do not smooth them. (ie: a special case in the smoothing algorithm that will NOT smooth rectangles).