PyVHACD
Python bindings for V-HACD
Install / Use
/learn @thomwolf/PyVHACDREADME
pyVHACD
Python bindings for V-HACD
A very simple and raw python binding for V-HACD (https://github.com/kmammou/v-hacd)
Generate a set of convex hulls for a triangulated mesh.
Contains a single method: output = compute_vhacd(points, faces) which take as inputs:
- points: a (N, 3) Numpy array of double containing the coordinates of the N vertex of the mesh
- face: a (M,) Numpy array of uint32 containing the face vertxe indices were M is 3 times the number of faces
Gives as output a list (number of convex hulls) of pairs of points-faces for each convex hull.
To install
pip install pyVHACD
To use
Examples usage with pyvista:
import pyvista
import pyVHACD
mesh = pyvista.examples.download_bunny().triangulate()
outputs = pyVHACD.compute_vhacd(mesh.points, mesh.faces)
plotter = pyvista.Plotter(window_size=(1500, 1100))
for i, (mesh_points, mesh_faces) in enumerate(outputs):
plotter.add_mesh(pyvista.PolyData(mesh_points, mesh_faces), color=list(pyvista.hexcolors.keys())[i])
plotter.show()
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
