Group Abstract Group Abstract

Message Boards Message Boards

0
|
6.4K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Cell indices and cell coordinates from Voronoi diagram

POSTED BY: Sander Huisman
3 Replies

Thank @Jaebum Jung! That was easy, feel kinda embarrassed! I somehow missed the MeshCells function...Thanks for the help!

POSTED BY: Sander Huisman
Posted 10 years ago
MeshCells[voronoidata, 2]
{Polygon[{11, 6, 10, 2}], Polygon[{18, 4, 13, 22}],   Polygon[{16, 9,
17, 20, 21}], Polygon[{1, 3, 7, 2, 10}],   Polygon[{5, 1, 10, 6, 8}],
 Polygon[{15, 11, 2, 7, 14}],   Polygon[{13, 4, 5, 8, 12}],
 Polygon[{14, 7, 3, 9, 16}],   Polygon[{19, 12, 8, 6, 11, 15}],
 Polygon[{17, 9, 3, 1, 5, 4, 18}]}
POSTED BY: Jaebum Jung

MeshPrimitives looked like a good function, however this returns the 'real' coordinates, not the indices...

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard