create_mesh_3d
Triangulates scattered (x, y, z) points into an interactive 3D mesh. Use for irregular terrain, point clouds, or sparse 3D samples; optionally color vertices by a fourth metric.
Instructions
Interactive 3D mesh from scattered points (WebGL, orbit-able).
Triangulates scattered (x, y, z) points into a connected surface or
enclosing hull — unlike create_surface_3d which needs a regular grid.
An optional intensity_column colors each vertex by a fourth metric.
Ideal for: irregular terrain/field point clouds, region bounding shapes, sparse 3D samples (e.g. pollution at uneven monitoring stations).
Returns: {filepath, title, rows}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts (one per scattered sample point) | |
| theme | No | 'dark', 'light', or 'infographic' | dark |
| title | No | Chart title | |
| filename | No | Output filename (without .html) | mesh_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) | |
| alphahull | No | 0 = convex hull, >0 = alpha shape, -1 = Delaunay (SciPy) | |
| colorscale | No | Plotly colorscale name for intensity mapping | Viridis |
| face_color | No | Solid mesh color when no intensity_column is given | |
| intensity_column | No | Optional column driving per-vertex color |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||