A collection of algorithms for iso-surface extraction on GPU. Supports pytorch.
Project description
isoext
GPU-accelerated iso-surface extraction for PyTorch
isoext is a high-performance library for extracting surfaces from scalar fields using CUDA.
Features
- Marching Cubes — Fast triangular mesh extraction
- Dual Contouring — Triangle meshes with sharp feature preservation
- Flexible Grids — Dense uniform grids and memory-efficient sparse grids
- SDF Utilities — Optional primitives and CSG operations
Installation
Requires PyTorch with CUDA support, as well as the matching CUDA compiler.
pip install isoext
Quick Start
import isoext
grid = isoext.UniformGrid([256, 256, 256])
grid.set_values(grid.get_points().norm(dim=-1) - 0.8) # Sphere
vertices, faces = isoext.marching_cubes(grid)
isoext.write_obj("sphere.obj", vertices, faces)
Documentation
See the full documentation for guides on grids, extraction methods, and the API reference.
License
MIT License. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
isoext-0.6.0.tar.gz
(2.5 MB
view details)
File details
Details for the file isoext-0.6.0.tar.gz.
File metadata
- Download URL: isoext-0.6.0.tar.gz
- Upload date:
- Size: 2.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f832605acc84077410994edc3f452c6de7ab8e540d770e3bae23bad052898cf
|
|
| MD5 |
a69a47098b32f7bb61e83f4f1eccd50b
|
|
| BLAKE2b-256 |
ee6eed55ef3dae8ee1489a098cf7983bcca5dc4f5911db43c3c84552ff2a12d4
|