sweepline-intersections icon indicating copy to clipboard operation
sweepline-intersections copied to clipboard

Colinear self intersections not always reported

Open esiegel opened this issue 3 months ago • 0 comments

Using version 2.0.0 this polygon will not report self intersection:

{ 
	type: 'Feature', 
  properties: {}, 
	geometry: { 
		type: 'Polygon',
		coordinates: [[
			[0,1],
			[1,1],
			[2,2],
			[1,1],
			[0,1]
		]]
	}
}

If i change one of the points, but it is still just as colinear, it does report self intersection

{ 
	type: 'Feature', 
  properties: {}, 
	geometry: { 
		type: 'Polygon',
		coordinates: [[
			[0,1],
			[1,1],
			[2,2],
			[1.5,1.5],
			[0,1]
		]]
	}
}

esiegel avatar Oct 02 '25 19:10 esiegel