核对glTF米制、Y轴向上和父级变换
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| node | local_height_m | parent_scale | expected_world_height_m | up_axis |
|---|---|---|---|---|
| bottle | 0.25 | 1 | 0.25 | Y |
| bottle-parent-scale | 0.25 | 100 | 25 | Y |
| centimeter-import | 25 | 0.01 | 0.25 | Y |


设置作者参照尺
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 单位 | glTF米制,正例世界高0.25m | author_acceptance_reference |
| 轴 | Y-up;导入Z-up时避免双旋转 | author_acceptance_reference |
| 世界变换 | 包含父级scale | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {
"localHeightM": 0.25,
"parentScale": 1,
"worldHeightM": 0.25,
"glTFUp": "Y"
},
"files": [
{
"file": "author-control.glb",
"bytes": 66456,
"extensionsUsed": [],
"animations": 0
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 单位 | glTF米制,正例世界高0.25m | author_acceptance_reference |
| 轴 | Y-up;导入Z-up时避免双旋转 | author_acceptance_reference |
| 世界变换 | 包含父级scale | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 单位错 | 0.25m解释成0.25mm | 缩小1000倍 |
| 重复缩放 | 父与子各0.01 | 重复换算 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。