when I use the polyop.getVertsUsingFace and using the array what I get to build an other polygon then it creates an enveloped shaped polygon instead of rectangle.
Obviously because the index sequence is wrong. (I checked it manually)
I wonder how to get it right withouth manually switching the last two elements.
The code basically is a poly copy.
Could somebody please help me out in this one?
THanks a lot
theFace = polyop.getfaceselection p
theVerts = polyop.getVertsUsingFace p theFace
theVerts = theVerts as array -- CONVERT BITARR TO ARRAY
for v=1 to theVerts.count do (
theVertsPos[v] = polyop.getVert p theVerts[v]
tempIdx = polyop.createvert p theVertsPos[v]
append theVerts2 tempIdx
polyop.createPolygon p theVerts2