Page 1 of 1

Drawing a cube

Posted: Fri Aug 04, 2006 6:00 pm
by 9346123
Hello,
I´m trying to draw a simple cube using Tee Chart 7 with an object of type TSurfaceSeries and the method AddXYZ, just informing the vertex of the cube. The result is strange.

Is there any simple sample to teach me how to do that?

Thanks,

Sérgio Kriz.

Posted: Mon Aug 07, 2006 11:34 am
by Pep
Hi Sergio,

the best way to draw a Cube is by using the TChart.Canvas Cube, Cylinder, Sphere methods to manually draw these objects directly on TChart.Canvas. I there's one example of this in the Demo Features project, included into the TeeChart Pro installation.

Wireframe

Posted: Mon Aug 07, 2006 2:15 pm
by 9346123
Hi Josep,

thanks for your reply.

In deed, what I want to do is to draw a wireframe 3D grid and then, using the features avaiable in TC7, switch the visualization mode to Surface, Surface Nearest and back to wireframe.

The wireframe is the result of several blocks (cubes) drawn one besides the other. If I draw one by one using the TChart.Canvas routines I will not be able to use the Surface and Surface Nearest features without having to convert the grid to the new format.

Because of this I would like to start to draw using TC7 since the beggining.

Below I send the wireframe drawn in other language.

Best regards,
Kriz.


These are the coordinates that I use to draw a simple cube in other language:

X Y Z

0.0000 -0.0000 -0.0000
100.0000 -0.0000 -0.0000
100.0000 -100.0000 -0.0000
0.0000 -100.0000 -0.0000
0.0000 -0.0000 -0.0000
100.0000 -0.0000 -0.0000
100.0000 -0.0000 -100.0000
100.0000 -100.0000 -100.0000
100.0000 -100.0000 -0.0000
100.0000 -0.0000 -0.0000
100.0000 -0.0000 -100.0000
100.0000 -100.0000 -100.0000
0.0000 -100.0000 -100.0000
0.0000 -0.0000 -100.0000
100.0000 -0.0000 -100.0000
0.0000 -0.0000 -0.0000
0.0000 -0.0000 -100.0000
0.0000 -100.0000 -100.0000
0.0000 -100.0000 -0.0000