You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vhacd-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vhacd-js

Voxelized hierarchical approximate convex mesh decomposition

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
760
9.83%
Maintainers
1
Weekly downloads
 
Created
Source

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 "v-hacd-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.

Keywords

convex

FAQs

Package last updated on 13 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts