This project is part of the @thi.ng/umbrella monorepo.
2D/3D convex polygon tessellators.
Note: Though not officially supported, all functions might also work (in principle) with concave polygons, though correct results are highly dependent on the concavities present. YMMV!
STABLE - used in production
yarn add @thi.ng/geom-tessellate
// ES module
<script type="module" src="https://unpkg.com/@thi.ng/geom-tessellate?module" crossorigin></script>
// UMD
<script src="https://unpkg.com/@thi.ng/geom-tessellate/lib/index.umd.js" crossorigin></script>
Package sizes (gzipped, pre-treeshake): ESM: 782 bytes / CJS: 872 bytes / UMD: 938 bytes
- @thi.ng/checks
- @thi.ng/geom-api
- @thi.ng/geom-isec
- @thi.ng/geom-poly-utils
- @thi.ng/transducers
- @thi.ng/vectors
Several demos in this repo's /examples directory are using this package.
A selection:
Screenshot | Description | Live demo | Source |
---|---|---|---|
Animated, recursive polygon tessellations | Demo | Source |
TODO
Karsten Schmidt
© 2016 - 2020 Karsten Schmidt // Apache Software License 2.0