Install & Compatibility
Where this runs
tested against v0.1.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.11
✕ build_error
✓ 6.9s
py 3.12
✕ build_error
✓ 7.4s
py 3.13
✕ build_error
✕ build_error
228MB installed
● package 228MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
marching_cubes
✓ from mcubes import marching_cubes
✗ from skimage.measure import marching_cubes
export_mesh
✓ from mcubes import export_mesh
smooth
✓ from mcubes import smooth
Extract an isosurface from volumetric data and save as OBJ.
import numpy as np
from mcubes import marching_cubes, export_obj
# Create volumetric data: a sphere
X, Y, Z = np.mgrid[-2:2:50j, -2:2:50j, -2:2:50j]
volume = np.sqrt(X**2 + Y**2 + Z**2) - 1.0
# Extract isosurface at level 0
vertices, triangles = marching_cubes(volume, 0)
# Export to OBJ file
export_obj(vertices, triangles, 'sphere.obj')
print('Isosurface extracted and saved to sphere.obj')
Upgrade
Version history
0.1.6latest on PyPI · released Jul 3, 2024
Audit
Dependencies
No dependency data recorded yet.