Hi,

Sorry for the long email, but I am trying to clearly explain my
situation.

I have some data that describes a closed 3-d surface.  The data
could describe a cell membrane, or the surface of a balloon for
example.  The data points are in spherical coordinates
[theta,phi,r], and it is garaunteed that for each pair of
[theta,phi] there is only one value of r.  The data comes in a
file where the [theta, phi] values are regularly arranged.  For
example, if the data described a sphere of radius 1, it could
look like:

        0       30      1
        0       60      1
        0       90      1
        ...
        0       360     1
        30      0       1
        30      60      1
        ...
        30      360     1
        ...
        180     360     1

I am trying to produce the 3-d surface that displays the data.  I
have one solution, but it seems very inelegant and crude to me.
My solution is as follows.  First, I use a simple external program
that converts the data in Cartesian coordinates.  Then,
because the data is ordered in [theta,phi], I have another
program that produces for me a file with triangular connections
for the data.  This is messy, and hardly general, since it
depends on the data being ordered in a particular way.  Finally,
with these two outputs (points in Cartesian coords and
connections) I make a .dx file for OpenDX and use the Data
Importer.

There must be a more direct was to get OpenDX to plot the
surface directly from the data?

Thanks

Reply via email to