@603419608 wrote:
Hello everyone,I encountered a strange problem.When I use rs.OffsetCurve () function is offset a polygon, rs.OffsetCurve () function does not offset negative.When the function returns a null offset negative.This is rs.OffsetCurve () function bug?
code:import rhinoscriptsyntax as rs obj = rs.GetObject("Select a curve", rs.filter.curve) if rs.IsCurve(obj): A = rs.OffsetCurve( obj, [0,0,0], 10.0 ) B = rs.OffsetCurve( obj, [0,0,0], -10.0 ) print A,B
I have using rhinocommon offset value no problem .
code:import Rhino as r style = r.Geometry.CurveOffsetCornerStyle.Sharp plane = r.Geometry.Plane.WorldXY tolerance = r.RhinoDoc.ActiveDoc.ModelAbsoluteTolerance a = plot.Offset(plane,f,tolerance,style)
file:
offset.zip (16.2 KB)
thanks
Posts: 3
Participants: 2