7a955bac7f
VDE-014 (High): Remove duplicate void write_stl/write_stl_ascii declarations VDE-015 (Medium): Fix Vector3F→Vector3f, Point3F→Point3f case sensitivity VDE-016 (High): Add forward declarations for face_bounds/face_normal/SSICurveData in ssi_boolean.cpp — fixes two-phase name lookup in GCC
849 B
849 B
id, status, severity, category, date, reporter
| id | status | severity | category | date | reporter |
|---|---|---|---|---|---|
| VDE-015 | fixed | medium | bug | 2026-07-27 | ViewDesign |
VDE-015: StlTrianglef 中 Vector3F / Point3F 拼写错误
问题描述
io_stl.h 中 StlTrianglef 结构体使用了 Vector3F 和 Point3F,但 math_types.h 中定义的类型是 Vector3f 和 Point3f(小写 f):
// 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'
建议修复
改为正确的大小写:
struct StlTrianglef {
Vector3f normal;
Point3f v0, v1, v2;
};