I am looking for the best method of moving the red polyline to be completely between the R/W and BOC polylines. Two feet from the R/W to be exact. I have the R/W polylines green and cyan just to show that there are two of them along the length of the red line. There could be multiple of the BOC too.
I can find both the closest point on a BOC and RW polylines to any given point on the red line. I can then figure out if it is inside or not. I can figure out where it intersects and stick a new vertex in the red line to keep it inside. That gets it inside but it still looks bad.
Ideally what I am looking for is a way to make the red line have all the vertices of the R/W polylines it runs along. Ideally the red line would end up looking like this.
Thank you. Any guidance or examples are greatly appreciated.
Solved! Go to Solution.
Solved by _gile. Go to Solution.
Hi,
You should have a look at the Curve.GetOffsetCurves method.
You can also use or get inspiration from the Polyline.Offset extension method from Gile.AutoCAD.Extension library.
Can't find what you're looking for? Ask the community or share your knowledge.