I am trying to prevent the user from drawing a polygon that has self-intersections on the canvas (using fabric.js). How can I check if a polygon has self-intersections?
Is there a simple and relatively fast method?……
I am trying to prevent the user from drawing a polygon that has self-intersections on the canvas (using fabric.js). How can I check if a polygon has self-intersections?
Is there a simple and relatively fast method?……