I need a Mesh (640x480) with vertex-indices for 0 to 639 in the first row, 640 to 1279 in the second row, and so on.... I will try to show what I mean in the picture:
First, I tried to use a Plane and subdivide it, but by doing that it destroy any useful indices of the Vertices. In my second attempt I use:
bpy.ops.mesh.primitive_grid_add(radius=1, view_align=False, enter_editmode=False, location=(0, -0, layers=(True, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))
to create a Grid with bpy. It creates a 10x10 Mesh (9 faces a row), with indices like I need. Now it just have to be bigger. Does someone know a command to create a Grid like I need with the 640x480 vertices?