How to create a mesh, or polyline, from the xy coordinates of 4 vertices in Geometry Nodes?

I have a CSV file which has eight columns, indicating the xy coordinates of vertice 1 to 4 of a rectangle in each row.

May I ask how to create a mesh, or polyline, from these eight values in each row of this CSV file?

I learned to install the Blender Spreadsheet Importer add-on to read the CSV.

However, I haven’t figured out how to read the coordinates of the vertices to create a mesh, or polyline.

Appreciate your help.

This gives the first point (v1_x, v1_y) and sets index 0 of a grid to it. You would have to do something similar for all four points. Get them in the right order to the right index and you will have a filled rectangle. My test csv only has 2 lines, a header and one line of data.

The problem is that your values are so large that scaling them only causes them to round into the same point.

The spreadsheet importer does not read the header line to help you out so you have to manually create the 8 input value names during import. Also, the importer doesn’t like spaces.

Sorry, I’m a little short on time right now.

1 Like