{"id":"eqicness/cdt2d","name":"cdt2d","scope":"eqicness","platform":"roblox","description":"Luau translation of Mikola Lysenko's cdt2d JS library.","version":"0.1.1","latest":"0.1.1","versions":["0.1.1"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"99153c5144f0e9ff093deb3b67d4bd4b8a816ec6c59fb91165314b899260740a","likes":0,"downloads":0,"install":"forest install eqicness/cdt2d","url":"https://forest.dev/p/roblox/eqicness/cdt2d","files":"https://api.forest.dev/ai/package/roblox/eqicness/cdt2d/files","readme":"# Constrained Delaunay Triangulation for Luau\n> Translated to Luau from the [original library](https://github.com/mikolalysenko/cdt2d) by Mikola Lysenko\n\nFully functional, documentation & code cleanup WIP.\n\n## Installation\nAdd `eqicness/cdt2d@0.1.0` to Wally dependencies\n\n## Usage\n```luau\nCDT.triangulate(points: { Point }, edges: { Edge }?, options: CDTOptions?): { Cell }\n```\n- `points`: An array of Point objects ```{X: number, Y: number}```.\n- `edges`: An array of constraint edges, e.g., {{1, 2}, {2, 3}}. Indices refer to the `points` array.\n- `options`: A table with boolean flags:\n```luau\nCDTOptions: {\ndelaunay: boolean --(default: true): Perform Delaunay refinement.\ninterior: boolean --(default: true): Include triangles inside the constraints.\nexterior: boolean --(default: true): Include triangles outside the constraints.\ninfinity: boolean --(default: false): Include \"infinite\" triangles for hull.\n}\n```","readmeTruncated":false}