<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>There currently doesn't seem to be a way to access points in the "grid" (x,y,z) structure. Can we add this function:</div>
<div><br></div><div>void vtkStructuredGrid::GetPoint(int x, int y, int z, double p[3])</div><div>{</div><div> int dims[3];</div><div> this->GetDimensions(dims);</div><div> </div><div> if(x >= dims[0] || y >= dims[1] || z >= dims[2])</div>
<div> {</div><div> return; // out of bounds!</div><div> }</div><div> </div><div> int ind = z*dims[1]*dims[0] + y*dims[0] + x;</div><div> //cout << "x: " << x << " y: " << y << " z: " << z << " ind: " << ind << endl;</div>
<div> </div><div> grid->GetPoint(ind, p); </div><div>}</div><div><br></div></span>Thanks,<br><br>David<br>