Install & Compatibility
Where this runs
tested against v0.1.2 · 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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 89.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 86MB
89MB installed
● package 89MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
isoline
✓ from isosurfaces import isoline
✗ from isosurfaces import marching_squares
isosurface
✓ from isosurfaces import isosurface
plot_isoline
✓ from isosurfaces import plot_isoline
Basic usage: sample a scalar field on a grid, then call marching_squares or marching_cubes.
from isosurfaces import marching_squares
import numpy as np
def f(x, y):
return x**2 + y**2 - 1
# Sample the function on a grid
xs = np.linspace(-2, 2, 100)
ys = np.linspace(-2, 2, 100)
values = np.array([[f(x, y) for x in xs] for y in ys])
# Extract isoline at value 0
verts, edges = marching_squares(values, 0)
print(f"Found {len(verts)} vertices, {len(edges)} edges")
Upgrade
Version history
0.1.2latest on PyPI · released Feb 26, 2024
Audit
Dependencies
No dependency data recorded yet.