Hi,
I’m doing by code a curve offset using API method (C#):
offset_crvs = crv.Offset( intPt, Vector3d.ZAxis, offset, RhinoDoc.ActiveDoc.ModelAbsoluteTolerance, CurveOffsetCornerStyle.Sharp );
So, when I use a specific location of intPt (interior point of curve) offset is valid, but, when I use another intPt (using an automatic method to find the point) the offset curve is wrong.
I’ve replicated the problem directly with Rhino user interface, with _Offset command (Distance=2, Corner=Sharpness, Tolerance=0.001) and problem seems equal than API code version (see image below):
Using the reference point to do the offset (see image below):
Attached is the reference file with problematic curve.
It is not a imported curve from other CAD software…the curve was done directly in Rhino.
Rhino version: Rhino 5 SR11
Thanks in advance.test_API_offset_2.3dm (22.7 KB)