I have a script works well in Rhino6, but when I run it in Rhino 7, the offsetcurve works differently, I have give the direction with the centroid area point to make as inside curve, however, it still offset the curve in y axis, I also try vector method, it still works wrong. what is the problem?
The script:
import rhinoscriptsyntax as rs
winFraWid=100
zxPlane=rs.WorldZXPlane()
rec=rs.AddRectangle(zxPlane,2000,1000)
winPts=rs.CurvePoints(rec)
cenPt=rs.CurveAreaCentroid(rec)[0]
vec=rs.VectorCreate(winPts[0],cenPt)
inFrameRec=rs.OffsetCurve(rec,cenPt,winFraWid,normal=vec)
1 post - 1 participant
