Page 1 of 1

Adaptive Surface Display

Posted: Fri Sep 18, 2009 4:09 am
by 15049432
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

Re: Adaptive Surface Display

Posted: Fri Sep 18, 2009 7:22 am
by narcis
Hi LVL,

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