earcut.hpp
earcut
Our great sponsors
earcut.hpp | earcut | |
---|---|---|
2 | 2 | |
808 | 2,098 | |
1.2% | 0.9% | |
3.0 | 0.0 | |
3 months ago | 9 months ago | |
C | JavaScript | |
ISC License | ISC License |
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.
earcut.hpp
-
TTF Parser, managed to triangulate simple polygons. Next will be inner holes.
Have you looked into mapbox's earcut hpp library? https://github.com/mapbox/earcut.hpp
-
RapidObj v0.1 - A fast, header-only, C++17 library for parsing Wavefront .obj files.
And out of 6,000 lines in the file, at least 3000 are other people's code: earcut for polygon triangulation and fast_float because .obj files typically contain a lot of floating point numbers so it's important to parse them quickly.
earcut
-
Looking for a modern way to draw filled polygons outta polyline-loop
To OP, you might want to check out https://github.com/mapbox/earcut. There are ports of it to all sorts of languages and it will help you with the triangulation.
- Function for generating and filling polygon from set of points
What are some alternatives?
fast_float - Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12 and WebKit/Safari
delaunator - An incredibly fast JavaScript library for Delaunay triangulation of 2D points
CGal - The public CGAL repository, see the README below
turf - A modular geospatial engine written in JavaScript and TypeScript
NativeRenderingPlugin - C++ Rendering Plugin example for Unity
Delaunator-GDScript - A GDScript port of Delaunator: A fast library for Delaunay triangulation of 2D points.
zpl - 📐 Pushing the boundaries of simplicity
rbush - RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
rapidobj - A fast, header-only, C++17 library for parsing Wavefront .obj files.
HSL - HSL to RGB and RGB to HSL
air-ctl - C Language Template Library C语言 模板库