I'm trying to display some large surfaces (like 400 x 400 -> 800 x 800 XYZ points) and wondered if there is a setting to make the surface display in an adaptive way. I mean, so that it doesn't try to render the whole dataset - but calculates a 'reasonable' surface based on the pixel resolution of the control.
If this ability isn't available, are there any suggested limits for the number of surface points so that I can implement something manually? (e.g., only add every n'th point).
Cheers
Adaptive Surface Display
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Adaptive Surface Display
Hi LVL,
The only solution I can think of is manually filtering data points before adding them to the series, for example:
The only solution I can think of is manually filtering data points before adding them to the series, for example:
Code: Select all
Private Sub Form_Load()
TChart1.AddSeries scSurface
TChart1.Series(0).asSurface.IrregularGrid = True
For X = 0 To 100
For Z = 0 To 100
If ((X Mod 10 = 0) And (Z Mod 10 = 0)) Then
TChart1.Series(0).asSurface.AddXYZ X, Rnd, Z, "", clTeeColor
End If
Next Z
Next X
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |