JSPM

@thi.ng/geom-tessellate

2.1.102
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 626
  • Score
    100M100P100Q108776F
  • License Apache-2.0

2D/3D convex polygon tessellators

Package Exports

  • @thi.ng/geom-tessellate
  • @thi.ng/geom-tessellate/earcut
  • @thi.ng/geom-tessellate/edge-split
  • @thi.ng/geom-tessellate/inset
  • @thi.ng/geom-tessellate/quad-fan
  • @thi.ng/geom-tessellate/rim-tris
  • @thi.ng/geom-tessellate/tessellate
  • @thi.ng/geom-tessellate/tri-fan

Readme

@thi.ng/geom-tessellate

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 189 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

2D/3D convex polygon tessellators. This is a support package for @thi.ng/geom.

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!

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/geom-tessellate

ES module import:

<script type="module" src="https://cdn.skypack.dev/@thi.ng/geom-tessellate"></script>

Skypack documentation

For Node.js REPL:

const geomTessellate = await import("@thi.ng/geom-tessellate");

Package sizes (brotli'd, pre-treeshake): ESM: 1018 bytes

Dependencies

Usage examples

Several projects in this repo's /examples directory are using this package:

Screenshot Description Live demo Source
Animated, recursive polygon tessellations Demo Source
Live coding playground for 2D geometry generation using @thi.ng/pointfree-lang Demo Source

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-geom-tessellate,
  title = "@thi.ng/geom-tessellate",
  author = "Karsten Schmidt",
  note = "https://thi.ng/geom-tessellate",
  year = 2013
}

License

© 2013 - 2024 Karsten Schmidt // Apache License 2.0