MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help! How can I control the size of individual point?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8732] Re: Help! How can I control the size of individual point?
  • From: tburton at cts.com (Tom Burton)
  • Date: Sat, 20 Sep 1997 22:28:00 -0400
  • Organization: Brahea Consulting
  • Sender: owner-wri-mathgroup at wolfram.com

On 19 Sep 1997 03:18:27 -0400, in comp.soft-sys.math.mathematica you
wrote:

>I have a data file that has coordinates of 3 dimensional spheres and their
>radii.
>
>x1 y1 z1 r1                r1       x1 y1 z1
>x2 y2 z2 r2                r2       x2 y2 z2
>x3 y3 z3 r3        or      r3  and  x3 y3 z3
>..                        ...      ...
>xi yi zi ri                ri       xi yi zi
>..                        ...      ...
>
>I tried,
>
>sphere = ReadList["filename", Point[Table[Number,{3}]
>Show[Graphics3D[{sphere}]]
>
This almost gets it right:

sphereAlmost=
  ReadList["filename",
    {Point[{Number,Number,Number}],PointSize[Number]}]

except that the pointsize should be set before the point is plotted, so

sphere=3DsphereAlmost/.{p_,r_}->{r,p}

Then

Show[Graphics3D[sphere]]

works fine. Hope this helps.
Tom Burton


  • Prev by Date: Re: Bug in pattern matching?
  • Next by Date: Mma: Using FindRoot in NonlinearRegress ?
  • Previous by thread: Help! How can I control the size of individual point?
  • Next by thread: Re: Help! How can I control the size of individual point?