UNPKG

bentley-ottman-sweepline

Version:

Bentley-Ottman segments intersection algorithm

34 lines (33 loc) 1.2 kB
<!-- <!DOCTYPE html> --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Geometry algorithm demo</title> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css"/> <link rel="stylesheet" type="text/css" href="./css/main.css"/> <script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js"></script> <script src="https://npmcdn.com/@turf/turf/turf.min.js"></script> </head> <body> <div id="wrap"> <div id="left-panel"> <div class="header"> <h2>Bentley-ottman segments intersection algorithm</h2> </div> <div id="content"> <div class="row number-row"> <span>segments:</span> <input class="segments-number" type="number" value="50"></input> </div> <div class="row button-row"> <input class="generate" type="button" value="Generate"></input> </div> </div> </div> <div id="map"> </div> </div> <script src="./js/bundle.js"></script> </body> </html>