Drawing a cube

TeeGofer general
Locked
kriz
Newbie
Newbie
Posts: 4
Joined: Thu Apr 20, 2006 12:00 am

Drawing a cube

Post by kriz » Fri Aug 04, 2006 6:00 pm

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.

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

Post by Pep » Mon Aug 07, 2006 11:34 am

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.

kriz
Newbie
Newbie
Posts: 4
Joined: Thu Apr 20, 2006 12:00 am

Wireframe

Post by kriz » Mon Aug 07, 2006 2:15 pm

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

Locked