1.2.0 • Published 4 years ago

powercrust-wasm v1.2.0

Weekly downloads
7
License
GPL-2.0+
Repository
github
Last release
4 years ago

Powerful meshing algorithm for the browser

This repo is a WebAssembly port of the code found on the Nina Amenta's website:

http://web.cs.ucdavis.edu/~amenta/powercrust.html

It is a fork of https://github.com/kubkon/powercrust

Introduction

Convert pointclouds into 3D Meshes with an easy to use JavaScript API.

Make sure that the file lib/wasm/powercrust.wasm can be loaded from /powercrust.wasm. If you are using webpack, you can use the webpack-copy-plugin to automatically copy it to your static folder. You can of course also copy it over manually.

Usage:

import powercrust from 'powercrust-wasm';

// Flat array of points with X,Y,Z values, e.g. loaded from the network (have a look at example/index.html)
const points = [1,2,3,4,5,6]
const result = await powercrust(points);
// { head: { numVertices: number; numFaces: number; } pc: number[][]; pnf: number[][]; }
console.log(result)
1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago