create_isosurface_3d
Generate a 3D isosurface from scattered volumetric data to highlight regions where a scalar value lies within a specified threshold. Use for pollution concentration, isotherms, or groundwater surfaces.
Instructions
Interactive 3D iso-surface from a volumetric scalar field (WebGL, orbit-able).
Renders the 3D boundary where value_column falls within [isomin, isomax] —
a level set of a continuous fourth variable sampled across (x, y, z). The
marching-cubes extraction runs client-side at render, so scattered samples
are accepted without a regular grid or SciPy.
Ideal for: pollution/concentration thresholds across a 3D monitoring volume, isotherms, groundwater head surfaces, any "region where value ≥ threshold".
Returns: {filepath, title, rows}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts (one per volumetric sample point) | |
| theme | No | 'dark', 'light', or 'professional' | dark |
| title | No | Chart title | |
| isomax | No | Upper scalar bound (defaults to column max) | |
| isomin | No | Lower scalar bound (defaults to column min) | |
| opacity | No | Surface opacity (0–1) | |
| filename | No | Output filename (without .html) | isosurface_3d |
| x_column | Yes | Column for the X axis | |
| y_column | Yes | Column for the Y axis | |
| z_column | Yes | Column for the Z axis (depth) | |
| colorscale | No | Plotly colorscale name for value mapping | Viridis |
| value_column | Yes | Column whose level sets define the surface |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||