Earcut
Split flat polygons into triangles for graphics rendering.
mapbox · 3D and games
GitHub projectOpen source Open on GitHubHow to try it
In a Node.js project, install [email protected]. Turn a sample square into triangles and count the returned indexes.
What we tested
3.2.4. Turn a sample square into triangles and count the returned indexes. Triangulated the square into two triangles that use all four corners.
Reviews
Rate this repoMore to explore
- glMatrixTransform vectors and matrices for graphics, motion and geometry.GitHub projectOpen source
- Three Mesh BVHUse a spatial index to query shapes in a Three.js scene.GitHub projectOpen source
- Matter.jsSimulate two-dimensional objects, gravity and collisions in JavaScript.GitHub projectOpen source