[vtkusers] vtkusers Digest, Vol 111, Issue 16

David Doria daviddoria at gmail.com
Tue Jul 9 15:10:40 EDT 2013


>   cols++; // why this statement ?
This must just be the definition of "resolution" that is passed in via
the command line. Apparently the number of columns is the "resolution"
+ 1.

>   unsigned int numberOfPoints = rows * cols; // how these number points are generated
This just defines the size of the point grid.

>   unsigned int numberOfPolys = (rows - 1) * (cols - 1); // what is this???
If you make a grid of rectangles (topologically), there are rows*cols
points, and (rows-1)*(cols-1) rectangles. Imagine a 3x3 grid of points
- you'll see that you can draw a 2x2 grid of non-overlapping
rectangles with the points as their corners.



More information about the vtkusers mailing list