Page 1 of 1

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

Posted: Wed May 19, 2004 7:03 am
by 8439906
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:

Posted: Wed May 19, 2004 8:06 am
by Pep
Hi,

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

Posted: Wed May 19, 2004 9:04 am
by 8439906
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.

Posted: Wed May 19, 2004 10:08 am
by Marjan
Hi. Chris.

The rotated cylinder shape is not yet supported. Current implementation only allows horizonzal or vertical cylinder shapes.