Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8688

Problem with self-intersecting curve

$
0
0

@eebs99 wrote:

I am trying to make a plugin that can trim off the excess of a self overlapping curve. I recently learned about Intersect.CurveSelf, but I'm having issues applying it in my plugin. Here is a picture:

(I should mention: the point at the start of the curve is under all those duplicated points)

The start and end points are fine, and the circle only overlaps once. So naturally, I'm assuming I would get 1 intersection point (I'm using a tolerance of .0001). However, I'm getting nine points. Here is my code:

Rhino.Geometry.Intersect.CurveIntersections events = CurveSelf(myCurve, 0.0001);

foreach (var event in events) {
AddPoint(event.PointA);
}

How do I make this better?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8688

Latest Images

Trending Articles



Latest Images