## How to draw an elliptic cylinder?

xsLiu
Newbie
Posts: 29
Joined: Wed May 22, 2019 12:00 am

### How to draw an elliptic cylinder?

The axis of an elliptic cylinder is a 3D curve, and its cross section at any position is an ellipse. The 3D curve and a series of cross-section ellipses are known. That is to say, we know the 3D coordinates of the curve and ellipses at any position. I have no idea to draw the elliptic cylinder. Would you like to give me an example? Thanks a lot.
Attachments
Fig.jpg (28.55 KiB) Viewed 2654 times

Yeray
Posts: 8965
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

### Re: How to draw an elliptic cylinder?

Hello,

I'm afraid there's no series or tool implemented in TeeChart doing this for you, but once you have the data, it should be possible to use a TSurfaceSeries or a TPoint3DSeries to draw it.
Best Regards,
 Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) Please read our Bug Fixing Policy

xsLiu
Newbie
Posts: 29
Joined: Wed May 22, 2019 12:00 am

### Re: How to draw an elliptic cylinder?

it should be possible to use a TSurfaceSeries or a TPoint3DSeries to draw it.
It is great and useful.
If it is required to draw a semitransparent surface, how to set Brush’s transparency? Or, is there any other way?

Yeray
Posts: 8965
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

### Re: How to draw an elliptic cylinder?

Hello,

Transparency is applied with Blending:

Code: Select all

``````uses TeCanvas;
//...
var tmpBlend : TTeeBlend;
const transp=80;
begin
//Prepare Pen and Brush

if transp>0 then
tmpBlend:=Chart1.Canvas.BeginBlending(TeeZeroRect,transp);

//Draw polygon

if transp>0 then
Chart1.Canvas.EndBlending(tmpBlend);``````
Best Regards,
 Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) Please read our Bug Fixing Policy

xsLiu
Newbie
Posts: 29
Joined: Wed May 22, 2019 12:00 am

### Re: How to draw an elliptic cylinder?

It works fine.
How to make such a Series visible or not as required? i.e. use a CheckBox to make it visible or not.

Yeray