Offset open polycurve

Hello,
I want to get this figure,

from the following polycurve,

The command for get the figure form this polycurve is:

I am developing in c# and RhinnoCommon.

Someone knows how I can get it?

Thanks

Hi Miguel,

You can get the offset curve using the method Curve.Offset() http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_Curve_Offset_1.htm

Here is a sample:

This function will give you a offset curve. Then you need to create a PolyCurve with both curves and two lines connecting both start and end points.

1 Like

Thank you very much Enric.

This is a good idea, in fact I use the following function:

Curve curvasOffset = curva.Offset(Plane.WorldXY, -10, 0.001, CurveOffsetCornerStyle.None)[0];

But, I want to know if there are anyway to do the figure with only one function of rhinocommon.

Thanks again, (Moltes gracies :wink: )