I've tried using the minMaxRangeU and minMaxRangeV attributes of nurbsSurface objects to get this information, but it doesn't seem to be accurate. For example, there is one nurbsSurface that when I select all of its CVs (by dragging across them), the Script Editor says:
select -r nurbsSurface1.cv[0:15][0:11]
This tells me that there are 16 CVs in the U direction and 12 in the V direction (right?). However, when I call minMaxRangeU and minMaxRangeV on this same surface, I get the following:
// Result: 0 11 //
// Result: 0 8 //
which is not consistent with the actual number of CVs. So how do I get the total number of CVs for a nurbsSurface so I can iterate over them??