delaunator VS earcut

Compare delaunator vs earcut and see what are their differences.

delaunator

An incredibly fast JavaScript library for Delaunay triangulation of 2D points (by mapbox)

earcut

The fastest and smallest JavaScript polygon triangulation library for your WebGL apps (by mapbox)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
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
delaunator earcut
4 2
2,199 2,107
0.8% 1.1%
4.9 0.0
3 months ago 9 months ago
JavaScript JavaScript
ISC License ISC License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

delaunator

Posts with mentions or reviews of delaunator. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-05.
  • Using Voronoi polygons for simplified continent generation
    3 projects | /r/proceduralgeneration | 5 May 2023
    Well, the easiest option would probably be to use a different Delaunay/Voronoi library. Delaunator (C# bindings here) should be a pretty good option: it's fast, and there's a good explanation of how to use the data structures it generates. There is some weirdness with how points at the edge of the domain work that you may have to work around, but that will probably be easier than trying to modify another algorithm or write your own. I know I've struggled to implement the algorithms for calculating Voronoi diagrams/Delaunay triangulations, even though I feel like I have a decent high-level understanding of how Fortune's algorithm is supposed to work.
  • Question about ints used for enums (cast as enum) (4.0.2)
    3 projects | /r/godot | 4 May 2023
  • Visualizing Delaunay Triangulation
    1 project | news.ycombinator.com | 12 Jul 2022
    Great article!

    How does this algorithm compare to others, e.g. sweep algorithms like the one used by delaunator[0]?

    An obvious difference is sweep algorithms sort the points in some way before adding them, is that a key to efficiency gains?

    0: https://github.com/mapbox/delaunator/blob/main/README.md#pap...

  • Diamonds
    1 project | /r/generative | 21 May 2021

earcut

Posts with mentions or reviews of earcut. We have used some of these posts to build our list of alternatives and similar projects.

What are some alternatives?

When comparing delaunator and earcut you can also consider the following projects:

blog - Life is a moment :notebook_with_decorative_cover:

turf - A modular geospatial engine written in JavaScript and TypeScript

Delaunator-GDScript - A GDScript port of Delaunator: A fast library for Delaunay triangulation of 2D points.

fdir - ⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s

earcut.hpp - Fast, header-only polygon triangulation

javascript-algorithms - 📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

rbush - RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles

spine-runtimes - 2D skeletal animation runtimes for Spine.

delaunator-sharp - Fast Delaunay triangulation of 2D points implemented in C#.

unity-delaunay - A Delaunay/Voronoi library for Unity, and a simple destruction effect