v3.0.0
What's Changed
- Migrate library to typescript, use es6 modules by default by @mauriciopoppe in #31
- Setup gh-pages with a demo of quickhull3d. by @mauriciopoppe in #32
- Remove require calls by @mauriciopoppe in #33
- fix: update d.ts with a call to isPointInsideHull 8e9d329
- chore: typo in comment in isPointInsideHull 542559b
Breaking Changes
The library is marked with "type": "module"
, the output is an esmodule instead of a common js module.
New webpage
I moved away from codesandbox.io, the demo webpage is now hosted in github pages at http://mauriciopoppe.github.io/quickhull3d/
Support for
Because the output is an esmodule, we can use tools like https://www.jsdelivr.com/esm to do runtime bundling! A minimal example using <script type="module">
import qh from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm'
const points = [
[0, 1, 0],
[1, -1, 1],
[-1, -1, 1],
[0, -1, -1]
]
const faces = qh(points)
console.log(faces)
Full Changelog: v2.1.0...v3.0.0