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 - [TV52013000] In the same circumstances as TV52012998, enabling the "smooth" option...
Summary: [TV52013000] In the same circumstances as TV52012998, enabling the "smooth" o...
Status: IN_PROGRESS
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-23 12:01 EDT by narcís calvet
Modified: 2013-12-03 08:04 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).