I'm trying to get the SurfaceCV indices from a NurbsSurface.
When I use the MItSurfaceCV class I get too few indices.
My Code till now, with a NurbsSphere selected:
sel = om.MSelectionList()
om.MGlobal.getActiveSelectionList(sel, 0)
dg = om.MDagPath()
sel.getDagPath(0, dg)
cvIter = om.MItSurfaceCV(dg)
inds = []
while not cvIter.isDone():
num1 = om.intPtr()
num2 = om.intPtr()
cvIter.getIndex(num1, num2)
inds.append([num1.value(), num2.value()])
cvIter.next()
My Output:
[0, 0]
[1, 0]
[2, 0]
[3, 0]
[4, 0]
[5, 0]
[6, 0]
But it should be:
[0,0]
[0,1]
...
[0,7]
[1,0]
[1,1]
...
[1,7]
[2,0]
...
[6,7]
Thanks to anyone looking into it.