view_axes
Compute world-to-page axis mapping for a viewport projection before rendering to catch axis swaps and sign flips.
Instructions
Return the world→page axis mapping for a project_to_viewport call, computed analytically (no projection performed). Use this BEFORE rendering a projected view to confirm which world axis ends up on which page axis and with what sign — catches bottom-view/side-view axis swaps before they show up in the render.
Returns JSON like {"world_X": ["page_X", -1.0], "world_Y": ["page_Y", 1.0],
"world_Z": ["depth", 0.0]} — for a bottom-view origin (0,0,-100), world-X
flips to negative page-X.
Args:
viewport_origin: camera position, same arg as project_to_viewport.
viewport_up: up vector. Defaults to (0,1,0).
look_at: target point. Defaults to origin.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| viewport_origin | Yes | ||
| viewport_up | No | ||
| look_at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |