I have a polygon sphere and I try to remove its faces and then make two points poly in place of the old edges.
The polySpline sop doesn't work fine.
I am trying in wrangle but , in my actual wrangle, the 2points are doubled and I can't figure how to script to avoid that.
int myNeigh[] = neighbours(0,@ptnum); int myPrims[] = pointprims(0,@ptnum); foreach (int j; pointprims(0,@ptnum)){ removeprim(0,j,0); } foreach (int i; myNeigh){ int newPr =addprim(0,"polyline"); addvertex(0,newPr,i); addvertex(0,newPr,@ptnum); }
The code doesn't remember the last creations and then double it …
Any help is welcome
Vincent