Edit: there were issues with the original csv file linked below, I've uploaded another csv file of a slightly modified dataset. I've also updated the info regarding the fields in the csv file accordingly.
This question is a continuation of this post: Controlling polygons by index value, from list of vertices (sverchok addon)
I am trying to display polygons of several continents in blender using the sverchok addon. These polygons are stored as a list of vertices (csv file), where each row contains the following information:
- fid = index of all the vertices in the list
- CONTINENT = name of continent
- vertex_part_index = index of the vertices unique to each polygon
- index_continent = index of continents (1 through 5 for Africa through South America)
- x = x-coordinate of vertex (longitude, in decimal degrees)
- y = y-coordinate of vertex (latitude, in decimal degrees)
Using these vertices, I would like to show each each polygon (in other words, create separate ngons with the list of vertices, based on the vertex_part value). Here are two ways to do so, when dealing with only two polygons (from the post linked above):
The first image above shows a node setup that works on a 1 to 1 basis, where 1 node tree can display 1 polygon (i.e. one node setup for Africa mainland, one node setup for Madagascar). The second image above shows a node setup that works on a 1 to 2 basis, where 1 node tree can display 2 polygons, but not more than 2.
My question is, how can I display all of these polygons at once? Without having to copy the first node setup for each polygon.
Here is a link to the (corrected) csv file: https://drive.google.com/file/d/1KLtZVi-uywQU9-l8INUDZbByLWPtH1KT/view?usp=sharing
Appreciate all the help. Thanks,
P.S. I also apologize that the geometry of these continents is not completely correct. For instance, Russia is lumped into the rest of Europe rather than being split into Asia as well. Please ignore the various errors in the geometry.