ComfyUI/comfy/ldm/cube
Jedrzej Kosinski 81f5f84ad6 Cube3D: vendor dependency-free marching cubes, drop scikit-image
scikit-image was added solely for Cube3D's VAEDecodeCube. Replace it with a
vendored, vectorized pure-PyTorch marching cubes (classic Lorensen tables) in
comfy/ldm/cube/marching_cubes.py. This is the same algorithm family as upstream
cube's default warp.MarchingCubes backend, so geometry is closer to upstream's
default than skimage's Lewiner fallback was.

Validated against skimage method='lorensen': identical face count and surface
(nearest-neighbour distance ~3.8e-6, float precision) on sphere/torus fields.
Vertices are welded (shared grid edges interpolate identically) for a clean
indexed mesh. requirements.txt no longer needs scikit-image.

Amp-Thread-ID: https://ampcode.com/threads/T-019ec361-addb-70d8-a74b-438ce8a1e096
Co-authored-by: Amp <amp@ampcode.com>
2026-06-14 23:44:20 -07:00
..
gpt.py Add native Roblox Cube3D text-to-3D support 2026-06-14 20:21:37 -07:00
marching_cubes.py Cube3D: vendor dependency-free marching cubes, drop scikit-image 2026-06-14 23:44:20 -07:00
vae.py Cube3D: vendor dependency-free marching cubes, drop scikit-image 2026-06-14 23:44:20 -07:00