Is it possible to generate a periodic Voronoi Mesh inside a rectangular domain? I would also like to obtain the coordinates of each cell separately so that I can perform further operations on each cell.
Edit: The following code as mentioned in this post seems to work fine to generate a periodic pattern.
(* Initial Data *)
SeedRandom[1];
pts = RandomReal[{-1, 1}, {10, 2}];
(* Augment data and find the larger Voronoi Mesh *)
pts2 = Flatten[
Table[TranslationTransform[{2 i, 2 j}][pts], {i, -1, 1}, {j, -1,
1}], 2];
vor1 = VoronoiMesh[pts2, {{-3, 3}, {-3, 3}}]
vor2 = VoronoiMesh[pts2, {{-1, 1}, {-1, 1}}];
coord = MeshCoordinates[vor2];
Show[vor2, Graphics[{Red, PointSize[0.01], Point[coord]}]]
Getting all the coordinates is easily done with MeshCoordinates. However, getting the group of coordinates separately for each cell is what I am looking for.


MeshPrimitivesmaybe? – Greg Hurst May 26 '20 at 23:28MeshPrimitives[vor2,2]does give me polygon objects but how I do then find the coordinates from there on? – Pinkesh May 28 '20 at 02:02