Files
ViewDesignEngine/docs/feedback/VDE-015.md
T

43 lines
849 B
Markdown
Raw Normal View History

---
id: VDE-015
status: fixed
severity: medium
category: bug
date: 2026-07-27
reporter: ViewDesign
---
# VDE-015: StlTrianglef 中 Vector3F / Point3F 拼写错误
## 问题描述
`io_stl.h``StlTrianglef` 结构体使用了 `Vector3F``Point3F`,但 `math_types.h` 中定义的类型是 `Vector3f``Point3f`(小写 `f`):
```cpp
// io_stl.h:126-128 — 当前(错误)
struct StlTrianglef {
Vector3F normal; // 应为 Vector3f
Point3F v0, v1, v2; // 应为 Point3f
};
```
## 编译错误
```
error: 'Vector3F' does not name a type
error: 'Point3F' does not name a type
error: 'Vector3F' is not a member of 'vde::foundation'
error: 'Point3F' is not a member of 'vde::foundation'
```
## 建议修复
改为正确的大小写:
```cpp
struct StlTrianglef {
Vector3f normal;
Point3f v0, v1, v2;
};
```