UNPKG

@thi.ng/quad-edge

Version:

Quadedge data structure after Guibas & Stolfi

112 lines (76 loc) 3.14 kB
<!-- This file is generated - DO NOT EDIT! --> <!-- Please see: https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#changes-to-readme-files --> # ![@thi.ng/quad-edge](https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/banners/thing-quad-edge.svg?83a8d81f) [![npm version](https://img.shields.io/npm/v/@thi.ng/quad-edge.svg)](https://www.npmjs.com/package/@thi.ng/quad-edge) ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/quad-edge.svg) [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi) > [!NOTE] > This is one of 215 standalone projects. LLM-free, human-made and > cared for software, maintained as part of the > [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem and > anti-framework. > > 🚀 Please help me to work full-time on these projects by [sponsoring > me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations). > Thank you! ❤️ - [About](#about) - [Status](#status) - [Related packages](#related-packages) - [Installation](#installation) - [Dependencies](#dependencies) - [API](#api) - [Authors](#authors) - [License](#license) ## About Quadedge data structure after Guibas & Stolfi. See the related [@thi.ng/geom-voronoi](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-voronoi) package for concrete usage. This package merely provides the underlying graph data structure. Reference: - http://www.cs.cmu.edu/afs/andrew/scs/cs/15-463/2001/pub/src/a2/quadedge.html - https://github.com/thi-ng/c-thing/blob/develop/src/geom/quadedge.h - Guibas & Stolfi: _Primitives for the manipulation of general subdivisions and the computation of Voronoi diagrams, ACM Transactions on Graphics, 4, 1985, p.75-123_ ## Status **STABLE** - used in production [Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Bquad-edge%5D) ## Related packages - [@thi.ng/geom-voronoi](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/geom-voronoi) - Fast, incremental 2D Delaunay & Voronoi mesh implementation ## Installation ```bash yarn add @thi.ng/quad-edge ``` ESM import: ```ts import * as qe from "@thi.ng/quad-edge"; ``` Browser ESM import: ```html <script type="module" src="https://esm.run/@thi.ng/quad-edge"></script> ``` [JSDelivr documentation](https://www.jsdelivr.com/) For Node.js REPL: ```js const qe = await import("@thi.ng/quad-edge"); ``` Package sizes (brotli'd, pre-treeshake): ESM: 558 bytes ## Dependencies - [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors) ## API [Generated API docs](https://docs.thi.ng/umbrella/quad-edge/) TODO ## Authors - [Karsten Schmidt](https://thi.ng) If this project contributes to an academic publication, please cite it as: ```bibtex @misc{thing-quad-edge, title = "@thi.ng/quad-edge", author = "Karsten Schmidt", note = "https://thi.ng/quad-edge", year = 2015 } ``` ## License &copy; 2015 - 2026 Karsten Schmidt // Apache License 2.0