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);
}