Re: Visualization of a list of 3D points coordinates with a perspective
- To: mathgroup at smc.vnet.net
- Subject: [mg89306] Re: Visualization of a list of 3D points coordinates with a perspective
- From: Albert Retey <awnl at arcor.net>
- Date: Thu, 5 Jun 2008 00:42:25 -0400 (EDT)
- References: <g25nta$hu5$1@smc.vnet.net>
Hi,
>
> I have a list containing 3D coordinates of a number of points, like this one
> lst={{3.30414, -2.86064, -2.54648}, {4.06572, 3.80403,
> 1.68897}, {-1.72822, -2.03097, -4.1024}, ...}
>
> Now comes the question. I would like to do it in such a way that the
> size (and may be the color) of each point or sphere would depend upon
> one of the coordinates (say, y). In other words, the size and the of the
> first point specified by lst with y=-2.86064 would be smaller than that
> of the second point that has y=3.80403. The color or darkness may also
> depend upon y. This would give a feeling of a perspective.
>
> Do you have an idea of how to do this?
Would that be a starting point?
lst = {{3.30414, -2.86064, -2.54648}, {4.06572, 3.80403,
1.68897}, {-1.72822, -2.03097, -4.1024}}
Graphics3D[
{Hue[#[[2]]/ymax], Sphere[#, Abs[#[[2]]]/ymax]} & /@ lst,
Lighting -> "Neutral"
]
hth,
albert