IrregularGrid Surface

TeeChart for ActiveX, COM and ASP
Post Reply
Michael
Newbie
Newbie
Posts: 1
Joined: Fri May 07, 2004 4:00 am
Location: Germany
Contact:

IrregularGrid Surface

Post by Michael » Fri Jun 04, 2004 1:24 pm

Hi all together,
I have to write a program to display measurements results made on a silicon wafer.
The coordinates are polar coordinates.
I need to diplay the results in a 3D surface series.
I tried this code to simulate the data.

This does not work. The programm completly crachs

I receive this message:

"Access violation in Adress 0365C117 in module 'TeeChart6Langs.ocx', Write of Adresse 00000606"

Is it possible to display polar data in TChart?
It is also possible that on result is false,
resulting in gaps in the data.
Can TChart manage these Gaps

every input is helpfull.
thanks a lot
michael

Code: Select all

Private Sub Command1_Click()
Dim x, y, z, Angle As Double
Dim i, ii As Integer
Dim Radius, Pi As Double
Pi = 3.14159
Radius = 150

With TChart1.Series(0).asSurface
IrregularGrid = True
For i = 0 To 360 Step 20
 Angle= i / 180 * Pi
 For ii = 1 To 10l
  x = Radius / 10 * ii * Sin(Angle)
  y = ii ^ 2
  z = Radius / 10 * ii * Cos(Angle)
  .AddXYZ x, y, z, "", clTeeColor
Next i
next ii
End With
End Sub

Pep
Site Admin
Site Admin
Posts: 3305
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jun 04, 2004 5:45 pm

Hi Michael,

I'm able to reproduce the problem, it seems to be a bug. I'm going to review it. I'll let you know something asap.

Post Reply