Cylinder in TDraw3D from (x1,y1,y2) to (x2,y2,z2)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
ChrM
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: Denmark
Contact:

Cylinder in TDraw3D from (x1,y1,y2) to (x2,y2,z2)

Post by ChrM » Wed May 19, 2004 7:03 am

Hi
I’m trying to visualize a 3D cylinder structure (a jacket structure) with the TDraw3D component. Is it possible to draw a 3d cylinder (or any other geometrical figure) from (x1,y1,z1) to (x2,y2,z2)?? If not, do you be any change know a method where it’s possible.
:lol:

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

Post by Pep » Wed May 19, 2004 8:06 am

Hi,

you can use the Canvas3D Cylinder method :
Draw3d1.Canvas.Cylinder (Vertical,x0,y0,x1,y1,z0,z1,dark3D);

ChrM
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: Denmark
Contact:

Post by ChrM » Wed May 19, 2004 9:04 am

Thanks for fast respons

I’ve tried to code you script, it works ok. But as far can see it only possible to draw a vertical or horizontal cylinder. I need to draw a cylinder from ex. (0,0,0) to (1,1,1) (center points of circular faces) with a diameter of ex. 0.05.

It’s possible to do with the MoveTo3D and LineTo3D functions but then the figure is drawn as lines only.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Wed May 19, 2004 10:08 am

Hi. Chris.

The rotated cylinder shape is not yet supported. Current implementation only allows horizonzal or vertical cylinder shapes.
Marjan Slatinek,
http://www.steema.com

Post Reply