Optimizing Polygon Intersections with Subdivide

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • clipper-lib

    Boolean operations and offsetting library in Javascript

  • I've only skimmed the article so their solution seems like a totally valid way to do polygon intersections for their purposes, but for people that want to do this in a more rigorous way, there's something called the Vatti clipping algorithm which does boolean operations on arbitrary 2D polygons (in polynomial time).

    To find polygon intersections, one can do a boolean "intersect" operation to see if the resulting operation has any results. If so, the polygons intersect. If not, then they're disjoint.

    Angus Johnson has created ClipperLib [1] which implements Vatti's algorithm and is available in a variety of languages, including C++, with ports to Javascript by others [2].

    CGAL [3] can do polygon clipping but, from my own experience, ClipperLib is about 400 times faster.

    [0] https://en.wikipedia.org/wiki/Vatti_clipping_algorithm

    [1] http://www.angusj.com/clipper2/Docs/Overview.htm

    [2] https://github.com/junmer/clipper-lib

    [3] https://www.cgal.org/

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • The Nature of Code (2nd Edition)

    2 projects | news.ycombinator.com | 1 May 2024
  • Letsencrypt certificates for nginx running on docker

    1 project | dev.to | 3 May 2024
  • This was not the pdfs.nycourts.gov we were looking for

    1 project | news.ycombinator.com | 2 May 2024
  • How I use Devbox in my Elm projects

    15 projects | dev.to | 2 May 2024
  • Umbra: A Disk-Based System with In-Memory Performance [pdf]

    3 projects | news.ycombinator.com | 2 May 2024