Problem on adding XYZ poins in 3D surface wireframe chart
Posted: Thu May 28, 2009 1:34 pm
Teechart pro v5 VCL
BCB6
Hi,
Y would like to draw a cylinder with several steps depth.
Using surface wireframe and AddXYZ method.
The first 180 ° ar ok
but while drawing the remainder, points are not joined correctly.
(irregular is checked)
Here is a trivial sample of code
Thanks a lot for your help...
BCB6
Hi,
Y would like to draw a cylinder with several steps depth.
Using surface wireframe and AddXYZ method.
The first 180 ° ar ok
but while drawing the remainder, points are not joined correctly.
(irregular is checked)
Here is a trivial sample of code
Code: Select all
for(int i = 0; i < 360; i ++)
{
float angle = DegToRad(i);
x = cos(angle);
y = sin(angle);
Series1->AddXYZ(x, y, 0);
Series1->AddXYZ(x, y, 1);
}