I want to get a point or the Sphere[] Graphics3D object to have a border or edge in a 3D scatter plot. The EdgeForm[] directives seem to apply only to polygon objects. The effect I am trying to get is shown below as white borders on points or spheres (generated using Matlab) enter image description here

  • $\begingroup$ maybe something like Graphics3D[{ Opacity[.5], Black, Ball[{1, 1, 1}, 1.1], Opacity@9, Orange, Sphere[{1, 1, 1}], Red, AbsolutePointSize[20], Point[{2, 2, 2}], AbsolutePointSize[15], Blue, Point[{2, 2, 2}], Point[{3, 3, 3}]}, PlotRange -> {{-1, 4}, {-1, 4}, {-1, 4}}]? $\endgroup$
    – kglr
    Oct 11, 2020 at 18:23
  • $\begingroup$ Welcome to Mathematica.SE! I suggest that: 1) You take the introductory Tour now! 2) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! 3) As you receive help, try to give it too, by answering questions in your area of expertise. $\endgroup$ Oct 12, 2020 at 12:54

1 Answer 1


Perhaps this is the look you are going for. I had to make up the data as you did not share it. Please do next time together with code to understand better what does not work for you. There are some tricks in the code below - check all functions in docs to understand how they work.

One way to do this is very simple - put a white hallo around points with another identical set of slightly larger points - and play with opacity too and point sizes.



enter image description here

Another way is 3D. Main thing is using an Ellipsoid because BoxRatios would deform spheres with your aspect ratios and use Opacity and Specularity to improve effect.





enter image description here

  • $\begingroup$ While this is a hack, your ingenious method does give the required effect! Thanks! $\endgroup$ Oct 13, 2020 at 7:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.