更新CFD对象
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
id | string | 是 | String | — |
objectType | string | 是 | 0 | 0 表面着色模型、1 矢量场模型、2 粒子轨迹模型 |
filePath | string | 是 | String | 文件路径 |
position | string | 是 | 0.0, 0.0, 0.0 | 位置 |
rotation | string | 是 | 0.0, -90.0, 90.0 | 朝向 |
scale | string | 是 | 1.0, 1.0, 1.0 | 缩放 |
elementScale | string | 是 | 0 | 元素缩放 |
sampleGap | string | 是 | 0 | 采样间隔 |
renderType | string | 是 | 3 | 渲染类型,0 cube、1 sphere、2 cone、3 arrow |
centralize | boolean | 是 | true | 数据居中 |
inverseFace | boolean | 是 | true | 反转面 |
调用
typescript
piclient.emit("gis.updateCFDObject",{
id: "String",
objectType: "0", //0 表面着色模型、1 矢量场模型、2 粒子轨迹模型
filePath: "String", //文件路径
position: "0.0, 0.0, 0.0", //位置
rotation: "0.0, -90.0, 90.0", //朝向
scale: "1.0, 1.0, 1.0", //缩放
elementScale: "0", //元素缩放
sampleGap: "0", //采样间隔
renderType: "3", //渲染类型,0 cube、1 sphere、2 cone、3 arrow
centralize: true, //数据居中
inverseFace: true, //反转面
})