Skip to content
forked from kmammou/v-hacd

Automatically exported from code.google.com/p/v-hacd

License

Notifications You must be signed in to change notification settings

pmconne/v-hacd-js

 
 

Repository files navigation

A dead-simple wrapper API for V-HACD to decompose a 3d surface into a set of "near" convex parts. Consult V-HACD for details.

Usage:

import { ConvexMeshDecomposition } from "vhacd-js";
// Create a mesh decomposer. It can be used to decompose as many meshes as you like.
const decomposer = await ConvexMeshDecomposition.create();
// Optionally configure how the decomposition is performed.
const options = { maxHulls: 32 };
// Produce an array of convex hulls from a mesh.
const hulls = decomposer.computeConvexHulls({ positions, indices }, options);

See vhacd.ts for full JavaScript API.

About

Automatically exported from code.google.com/p/v-hacd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.1%
  • TypeScript 2.6%
  • Other 0.3%