render_fem_results
Visualize a completed FEM analysis by rendering its surface colored by stress, displacement, or temperature, with deformed shape and colorbar.
Instructions
Render a completed FEM result's surface, colored by a per-vertex field.
Pulls the result surface (boundary triangulation + per-node field values + displacement vectors) from the worker, then colors it with a viridis colormap (barycentrically interpolated), overlays the deformed shape, and draws a colorbar with the field min/max — the "agent eyes" for a stress / displacement / thermal solve.
field: 'vonmises' (default) | 'displacement' | 'temperature'. view: a preset ('iso'|'top'|'front'|…) or a custom '(azimuth,elevation)' camera passed as e.g. "45,35". deformation_scale: 'auto' scales the peak displacement to ~8% of the model diagonal; a number is used verbatim; '0' disables the deformed overlay.
Returns {png_base64, width, height, field, units, min, max, view, node_count, triangle_count}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | iso | |
| edges | No | ||
| field | No | vonmises | |
| width | No | ||
| height | No | ||
| analysis | Yes | ||
| deformation_scale | No | auto |