Cgajs Compile Cga
cgajs_compile_cga把 CGA 规则源码编译为三维模型(GLB),经 CGA.js 云端引擎。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cga_source": "<cga_source>"
},
"name": "cgajs_compile_cga"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | "" = js(默认,×1 配额);"python" = 服务器原生引擎(×3 配额, 对 CityEngine 方言兼容性更好)。 | |
| cga_source | Yes | CGA 规则源码全文(需含 @StartRule 与 Lot 规则)。 | |
| output_dir | No | glb 落盘目录。 | |
| download_glb | No | 是否把 glb 落盘(默认 True)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||