epix-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ePiX-users] Re: drawing cylinders, cones, and spheres


From: Andrew D. Hwang
Subject: [ePiX-users] Re: drawing cylinders, cones, and spheres
Date: Sun, 14 Oct 2007 09:54:21 -0400 (EDT)

On Sun, 7 Oct 2007, Math Plot wrote:

The program is generating vertical test tube with a semi circular base. An
elliptical base would be nice.

How can be generate horizontal cylinder partially filled with liquid with an
arrow indicating the height of the liquid?

We also need partially filled cone and shpere with liquid is emphasized with
some colour.

Hello,

The tar file

  http://mathcs.holycross.edu/~ahwang/epix/tubes.tar

contains some comented code (tubes.h) and an xp file illustrating use.
If the files are in the same directory, compile with

  elaps -I. tubes2.xp

The tubes/vessels are 3-D objects; you can add arrows, etc., manually. (As usual, you have to arrange scene elements in reverse order of distance to the camera, if appropriate.)


Andrew D. Hwang                 address@hidden
Department of Math and CS       http://mathcs.holycross.edu/~ahwang
College of the Holy Cross       (508) 793-2458 (Office: 320 Swords)
Worcester, MA, 01610-2395       (508) 793-3530 (fax)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]