Yes, but you are mixing and confusing things.
You have QVector.size() points.
So the index of the x,y and z vectors is not their location in the 3D world, but their joint values are, yet you are using the vector index as a position:
what (maybe) you are looking for is:points[ix][iy][0]=x[cont];
but what 'somevalue' is, I don't know, its not visible in your code, maybe reflectance[i]?Qt Code:
for(int i=0: i<x.size(); i++) points[x[i]][y[i]][z[i]] = somevalue;To copy to clipboard, switch view to plain text mode





Reply With Quote

Bookmarks