render_cages
Render clathrate hydrate cages as photorealistic PNG images with customizable colors, emphasis, and highlight. Supports sI, sII, sH cage types and per-type color mapping.
Instructions
Render clathrate cages photorealistically (ambient occlusion + shadows, orthographic by default). Each cage type is drawn in ONE unified color for both its water-oxygen vertices and its O-O framework, using a curated palette (512=cyan, 51262=violet, 51264=red, 435663=lime, 51268=blue).
Natural-language styling maps directly to the arguments:
"show only the sII large cages" -> cage_types=["51264"]
"... in magenta" -> highlight_color="magenta" (name or #rrggbb)
"emphasize / thicker width" -> emphasis=True (thicker edges + bigger spheres)
per-type colors -> colors={"512": "cyan", "51264": "magenta"} cage_types are internal codes: 512, 51262, 51263, 51264, 51268, 435663, ... (sI = 512+51262, sII = 512+51264, sH = 512+435663+51268). Returns a PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| frame | No | ||
| width | No | ||
| colors | No | ||
| height | No | ||
| method | No | TRACE | |
| emphasis | No | ||
| material | No | Glossy | |
| background | No | #0f172a | |
| cage_types | No | ||
| projection | No | orthographic | |
| highlight_color | No |