4
$\begingroup$

I would like to create a Voronoi diagram without the boundary edges highlighted. This code

gVD = VoronoiMesh[X, MeshCellStyle -> {{1, All} -> {Thick, Red}}]

produces the 1st image [left/top] (X is my set of sites). What I want is the 2nd image [right/bottom], which I edited in Adobe Illustrator to remove the edges around the square. I have been unsuccessful in identifying those boundary edges. Any ideas?


 
(Incidentally, these Voronoi diagrams have no interior cells: all cells are unbounded.)
X = {{1.60949, -3.71179}, {5.7819, -7.34439}, {9.88144, 8.31277}, 
  {8.30027, 13.0336}, {-10.5991, 10.1752}, {-6.70748, 1.50298}};
$\endgroup$
4
$\begingroup$
VoronoiMesh[X, 
 MeshCellStyle -> {{1, "Interior"} -> {Thick, Red}, {1, "Frontier"} -> {Thick, Red}}]

enter image description here

Alternatively,

VoronoiMesh[X, 
 MeshCellStyle -> {{1, "Boundary"} -> Opacity[0], {1, All} -> Directive[Thick, Red]}]

same picture

$\endgroup$
2
  • $\begingroup$ Thanks so much! I was unaware of these keywords, "Boundary," "Frontier," "Interior." $\endgroup$ Jul 9 '20 at 1:29
  • 3
    $\begingroup$ @Joseph, yes, these are unfortunately undocumented. Please consider sending a suggestion to Support if you want these documented. $\endgroup$ Jul 9 '20 at 4:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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